You are here

public function LogicalNotToken::scoreArgument in Zircon Profile 8

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

Scores 4 when preset token does not match the argument.

Parameters

$argument:

Return value

bool|int

Overrides TokenInterface::scoreArgument

File

vendor/phpspec/prophecy/src/Prophecy/Argument/Token/LogicalNotToken.php, line 39

Class

LogicalNotToken
Logical NOT token.

Namespace

Prophecy\Argument\Token

Code

public function scoreArgument($argument) {
  return false === $this->token
    ->scoreArgument($argument) ? 4 : false;
}