You are here

public function ObjectStateToken::__toString in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/phpspec/prophecy/src/Prophecy/Argument/Token/ObjectStateToken.php \Prophecy\Argument\Token\ObjectStateToken::__toString()

Returns string representation for token.

Return value

string

Overrides TokenInterface::__toString

File

vendor/phpspec/prophecy/src/Prophecy/Argument/Token/ObjectStateToken.php, line 97

Class

ObjectStateToken
Object state-checker token.

Namespace

Prophecy\Argument\Token

Code

public function __toString() {
  return sprintf('state(%s(), %s)', $this->name, $this->util
    ->stringify($this->value));
}