| 1 | <?php |
||
| 10 | class MissingScopeException extends AuthorizationException |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * The scopes that the user did not have. |
||
| 14 | * |
||
| 15 | * @var array |
||
| 16 | */ |
||
| 17 | protected $scopes; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Create a new missing scope exception. |
||
| 21 | * |
||
| 22 | * @param array|string $scopes |
||
| 23 | * @param string $message |
||
| 24 | * |
||
| 25 | * @return void |
||
|
|
|||
| 26 | */ |
||
| 27 | public function __construct($scopes = [], $message = 'Invalid scope(s) provided.') |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Get the scopes that the user did not have. |
||
| 36 | * |
||
| 37 | * @return array |
||
| 38 | */ |
||
| 39 | public function scopes() |
||
| 43 | } |
||
| 44 |
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.