You are here

public function ExactValueToken::__construct in Zircon Profile 8.0

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

Initializes token.

Parameters

mixed $value:

StringUtil $util:

ComparatorFactory $comparatorFactory:

File

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

Class

ExactValueToken
Exact value token.

Namespace

Prophecy\Argument\Token

Code

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