You are here

public function ArrayEveryEntryToken::__construct in Zircon Profile 8

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

Parameters

mixed $value exact value or token:

File

vendor/phpspec/prophecy/src/Prophecy/Argument/Token/ArrayEveryEntryToken.php, line 29

Class

ArrayEveryEntryToken
Array every entry token.

Namespace

Prophecy\Argument\Token

Code

public function __construct($value) {
  if (!$value instanceof TokenInterface) {
    $value = new ExactValueToken($value);
  }
  $this->value = $value;
}