class AnyValueToken in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpspec/prophecy/src/Prophecy/Argument/Token/AnyValueToken.php \Prophecy\Argument\Token\AnyValueToken
Any single value token.
@author Konstantin Kudryashov <ever.zet@gmail.com>
Hierarchy
- class \Prophecy\Argument\Token\AnyValueToken implements TokenInterface
Expanded class hierarchy of AnyValueToken
File
- vendor/
phpspec/ prophecy/ src/ Prophecy/ Argument/ Token/ AnyValueToken.php, line 19
Namespace
Prophecy\Argument\TokenView source
class AnyValueToken implements TokenInterface {
/**
* Always scores 3 for any argument.
*
* @param $argument
*
* @return int
*/
public function scoreArgument($argument) {
return 3;
}
/**
* Returns false.
*
* @return bool
*/
public function isLast() {
return false;
}
/**
* Returns string representation for token.
*
* @return string
*/
public function __toString() {
return '*';
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AnyValueToken:: |
public | function |
Returns false. Overrides TokenInterface:: |
|
AnyValueToken:: |
public | function |
Always scores 3 for any argument. Overrides TokenInterface:: |
|
AnyValueToken:: |
public | function |
Returns string representation for token. Overrides TokenInterface:: |