interface TokenInterface
Argument token interface.
@author Konstantin Kudryashov <ever.zet@gmail.com>
Hierarchy
- interface \Prophecy\Argument\Token\TokenInterface
Expanded class hierarchy of TokenInterface
All classes that implement TokenInterface
File
-
vendor/
phpspec/ prophecy/ src/ Prophecy/ Argument/ Token/ TokenInterface.php, line 19
Namespace
Prophecy\Argument\TokenView source
interface TokenInterface {
/**
* Calculates token match score for provided argument.
*
* @param mixed $argument
*
* @return false|int
*/
public function scoreArgument($argument);
/**
* Returns true if this token prevents check of other tokens (is last one).
*
* @return bool
*/
public function isLast();
/**
* Returns string representation for token.
*
* @return string
*/
public function __toString();
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
TokenInterface::isLast | public | function | Returns true if this token prevents check of other tokens (is last one). | 16 |
TokenInterface::scoreArgument | public | function | Calculates token match score for provided argument. | 16 |
TokenInterface::__toString | public | function | Returns string representation for token. | 16 |