interface TokenInterface in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpspec/prophecy/src/Prophecy/Argument/Token/TokenInterface.php \Prophecy\Argument\Token\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
2 files declare their use of TokenInterface
- ArgumentsWildcardSpec.php in vendor/
phpspec/ prophecy/ spec/ Prophecy/ Argument/ ArgumentsWildcardSpec.php - LogicalNotTokenSpec.php in vendor/
phpspec/ prophecy/ spec/ Prophecy/ Argument/ Token/ LogicalNotTokenSpec.php
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 $argument
*
* @return bool|int
*/
public function scoreArgument($argument);
/**
* Returns true if this token prevents check of other tokens (is last one).
*
* @return bool|int
*/
public function isLast();
/**
* Returns string representation for token.
*
* @return string
*/
public function __toString();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TokenInterface:: |
public | function | Returns true if this token prevents check of other tokens (is last one). | 13 |
TokenInterface:: |
public | function | Calculates token match score for provided argument. | 13 |
TokenInterface:: |
public | function | Returns string representation for token. | 13 |