You are here

public function StringContainsToken::scoreArgument in Zircon Profile 8

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

Calculates token match score for provided argument.

Parameters

$argument:

Return value

bool|int

Overrides TokenInterface::scoreArgument

File

vendor/phpspec/prophecy/src/Prophecy/Argument/Token/StringContainsToken.php, line 33

Class

StringContainsToken
String contains token.

Namespace

Prophecy\Argument\Token

Code

public function scoreArgument($argument) {
  return strpos($argument, $this->value) !== false ? 6 : false;
}