public function IdenticalValueToken::scoreArgument in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpspec/prophecy/src/Prophecy/Argument/Token/IdenticalValueToken.php \Prophecy\Argument\Token\IdenticalValueToken::scoreArgument()
Scores 11 if argument matches preset value.
Parameters
$argument:
Return value
bool|int
Overrides TokenInterface::scoreArgument
File
- vendor/
phpspec/ prophecy/ src/ Prophecy/ Argument/ Token/ IdenticalValueToken.php, line 46
Class
- IdenticalValueToken
- Identical value token.
Namespace
Prophecy\Argument\TokenCode
public function scoreArgument($argument) {
return $argument === $this->value ? 11 : false;
}