1 | <?php |
||
13 | class LarsignException extends Exception |
||
14 | { |
||
15 | /** |
||
16 | * All of the guards that were checked. |
||
17 | * |
||
18 | * @var array |
||
19 | */ |
||
20 | protected $guards; |
||
21 | |||
22 | /** |
||
23 | * Create a new authentication exception. |
||
24 | * |
||
25 | * @param string $message |
||
26 | * @param array $guards |
||
27 | * @return void |
||
|
|||
28 | */ |
||
29 | public function __construct($message = 'Larsign unauthenticated.', array $guards = []) |
||
35 | |||
36 | /** |
||
37 | * Get the guards that were checked. |
||
38 | * |
||
39 | * @return array |
||
40 | */ |
||
41 | public function guards() |
||
45 | } |
||
46 |
Adding a
@return
annotation 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.