You are here

public function TokenInterface::scoreArgument in Zircon Profile 8

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

Calculates token match score for provided argument.

Parameters

$argument:

Return value

bool|int

13 methods override TokenInterface::scoreArgument()
AnyValuesToken::scoreArgument in vendor/phpspec/prophecy/src/Prophecy/Argument/Token/AnyValuesToken.php
Always scores 2 for any argument.
AnyValueToken::scoreArgument in vendor/phpspec/prophecy/src/Prophecy/Argument/Token/AnyValueToken.php
Always scores 3 for any argument.
ArrayCountToken::scoreArgument in vendor/phpspec/prophecy/src/Prophecy/Argument/Token/ArrayCountToken.php
Scores 6 when argument has preset number of elements.
ArrayEntryToken::scoreArgument in vendor/phpspec/prophecy/src/Prophecy/Argument/Token/ArrayEntryToken.php
Scores half of combined scores from key and value tokens for same entry. Capped at 8. If argument implements \ArrayAccess without \Traversable, then key token is restricted to ExactValueToken.
ArrayEveryEntryToken::scoreArgument in vendor/phpspec/prophecy/src/Prophecy/Argument/Token/ArrayEveryEntryToken.php
Calculates token match score for provided argument.

... See full list

File

vendor/phpspec/prophecy/src/Prophecy/Argument/Token/TokenInterface.php, line 28

Class

TokenInterface
Argument token interface.

Namespace

Prophecy\Argument\Token

Code

public function scoreArgument($argument);