class AnyValuesToken in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpspec/prophecy/src/Prophecy/Argument/Token/AnyValuesToken.php \Prophecy\Argument\Token\AnyValuesToken
Any values token.
@author Konstantin Kudryashov <ever.zet@gmail.com>
Hierarchy
- class \Prophecy\Argument\Token\AnyValuesToken implements TokenInterface
Expanded class hierarchy of AnyValuesToken
2 files declare their use of AnyValuesToken
- CallPrediction.php in vendor/
phpspec/ prophecy/ src/ Prophecy/ Prediction/ CallPrediction.php - CallTimesPrediction.php in vendor/
phpspec/ prophecy/ src/ Prophecy/ Prediction/ CallTimesPrediction.php
File
- vendor/
phpspec/ prophecy/ src/ Prophecy/ Argument/ Token/ AnyValuesToken.php, line 19
Namespace
Prophecy\Argument\TokenView source
class AnyValuesToken implements TokenInterface {
/**
* Always scores 2 for any argument.
*
* @param $argument
*
* @return int
*/
public function scoreArgument($argument) {
return 2;
}
/**
* Returns true to stop wildcard from processing other tokens.
*
* @return bool
*/
public function isLast() {
return true;
}
/**
* Returns string representation for token.
*
* @return string
*/
public function __toString() {
return '* [, ...]';
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AnyValuesToken:: |
public | function |
Returns true to stop wildcard from processing other tokens. Overrides TokenInterface:: |
|
AnyValuesToken:: |
public | function |
Always scores 2 for any argument. Overrides TokenInterface:: |
|
AnyValuesToken:: |
public | function |
Returns string representation for token. Overrides TokenInterface:: |