| 1 | <?php |
||
| 10 | class TokenConsumedException extends InvalidTokenException |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Create an instance of this class. |
||
| 14 | * |
||
| 15 | * @param string $value Token value |
||
| 16 | * @param string $purpose Token purpose |
||
| 17 | * @param int $usages Count usages |
||
| 18 | * |
||
| 19 | * @return TokenConsumedException |
||
|
|
|||
| 20 | */ |
||
| 21 | 3 | public static function create(string $value, string $purpose, int $usages): self |
|
| 32 | } |
||
| 33 |
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.