You are here

public function ArgumentsWildcard::__toString in Zircon Profile 8.0

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

Returns string representation for wildcard.

Return value

string

File

vendor/phpspec/prophecy/src/Prophecy/Argument/ArgumentsWildcard.php, line 83

Class

ArgumentsWildcard
Arguments wildcarding.

Namespace

Prophecy\Argument

Code

public function __toString() {
  if (null === $this->string) {
    $this->string = implode(', ', array_map(function ($token) {
      return (string) $token;
    }, $this->tokens));
  }
  return $this->string;
}