You are here

public function LogicalAndToken::__construct in Zircon Profile 8

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

Parameters

array $arguments exact values or tokens:

File

vendor/phpspec/prophecy/src/Prophecy/Argument/Token/LogicalAndToken.php, line 26

Class

LogicalAndToken
Logical AND token.

Namespace

Prophecy\Argument\Token

Code

public function __construct(array $arguments) {
  foreach ($arguments as $argument) {
    if (!$argument instanceof TokenInterface) {
      $argument = new ExactValueToken($argument);
    }
    $this->tokens[] = $argument;
  }
}