| 1 | <?php |
||
| 19 | class LogicalNotToken implements TokenInterface |
||
| 20 | { |
||
| 21 | /** @var \Prophecy\Argument\Token\TokenInterface */ |
||
| 22 | private $token; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param mixed $value exact value or token |
||
| 26 | */ |
||
| 27 | public function __construct($value) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Scores 4 when preset token does not match the argument. |
||
| 34 | * |
||
| 35 | * @param $argument |
||
| 36 | * |
||
| 37 | * @return bool|int |
||
| 38 | */ |
||
| 39 | public function scoreArgument($argument) |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Returns true if preset token is last. |
||
| 46 | * |
||
| 47 | * @return bool|int |
||
| 48 | */ |
||
| 49 | public function isLast() |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Returns originating token. |
||
| 56 | * |
||
| 57 | * @return TokenInterface |
||
| 58 | */ |
||
| 59 | public function getOriginatingToken() |
||
| 63 | |||
| 64 | /** |
||
| 65 | * Returns string representation for token. |
||
| 66 | * |
||
| 67 | * @return string |
||
| 68 | */ |
||
| 69 | public function __toString() |
||
| 73 | } |
||
| 74 |