You are here

public function ObjectStateToken::__construct 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::__construct()

Initializes token.

Parameters

string $methodName:

mixed $value Expected return value:

null|StringUtil $util:

ComparatorFactory $comparatorFactory:

File

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

Class

ObjectStateToken
Object state-checker token.

Namespace

Prophecy\Argument\Token

Code

public function __construct($methodName, $value, StringUtil $util = null, ComparatorFactory $comparatorFactory = null) {
  $this->name = $methodName;
  $this->value = $value;
  $this->util = $util ?: new StringUtil();
  $this->comparatorFactory = $comparatorFactory ?: ComparatorFactory::getInstance();
}