You are here

public function ExactValueToken::__toString in Zircon Profile 8

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

Returns string representation for token.

Return value

string

Overrides TokenInterface::__toString

File

vendor/phpspec/prophecy/src/Prophecy/Argument/Token/ExactValueToken.php, line 108

Class

ExactValueToken
Exact value token.

Namespace

Prophecy\Argument\Token

Code

public function __toString() {
  if (null === $this->string) {
    $this->string = sprintf('exact(%s)', $this->util
      ->stringify($this->value));
  }
  return $this->string;
}