| 1 | <?php |
||
| 7 | class TransientToken |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Determine if the token has a given scope. |
||
| 11 | * |
||
| 12 | * @param string $scope |
||
| 13 | * |
||
| 14 | * @return bool |
||
| 15 | */ |
||
| 16 | public function can($scope) |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Determine if the token is missing a given scope. |
||
| 23 | * |
||
| 24 | * @param string $scope |
||
| 25 | * |
||
| 26 | * @return bool |
||
| 27 | */ |
||
| 28 | public function cant($scope) |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Determine if the token is a transient JWT token. |
||
| 35 | * |
||
| 36 | * @return bool |
||
| 37 | */ |
||
| 38 | public function transient() |
||
| 42 | } |
||
| 43 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.