public function ArrayCountToken::scoreArgument in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpspec/prophecy/src/Prophecy/Argument/Token/ArrayCountToken.php \Prophecy\Argument\Token\ArrayCountToken::scoreArgument()
Scores 6 when argument has preset number of elements.
Parameters
$argument:
Return value
bool|int
Overrides TokenInterface::scoreArgument
File
- vendor/
phpspec/ prophecy/ src/ Prophecy/ Argument/ Token/ ArrayCountToken.php, line 39
Class
- ArrayCountToken
- Array elements count token.
Namespace
Prophecy\Argument\TokenCode
public function scoreArgument($argument) {
return $this
->isCountable($argument) && $this
->hasProperCount($argument) ? 6 : false;
}