1 | <?php namespace Limoncello\Application\Exceptions; |
||
25 | class AuthorizationException extends RuntimeException implements AuthorizationExceptionInterface |
||
26 | { |
||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | private $action; |
||
31 | |||
32 | /** |
||
33 | * @var string|null |
||
34 | */ |
||
35 | private $resourceType; |
||
36 | |||
37 | /** |
||
38 | * @var string|int|null |
||
39 | */ |
||
40 | private $resourceIdentity; |
||
41 | |||
42 | /** |
||
43 | * @var array |
||
44 | */ |
||
45 | private $extraParameters; |
||
46 | |||
47 | /** |
||
48 | * @param string $action |
||
49 | * @param null|string $resourceType |
||
50 | * @param int|null|string $resourceIdentity |
||
51 | * @param array $extraParams |
||
52 | */ |
||
53 | public function __construct( |
||
66 | |||
67 | /** |
||
68 | * @inheritdoc |
||
69 | */ |
||
70 | public function getAction(): string |
||
74 | |||
75 | /** |
||
76 | * @inheritdoc |
||
77 | */ |
||
78 | public function getResourceType() |
||
82 | |||
83 | /** |
||
84 | * @inheritdoc |
||
85 | */ |
||
86 | public function getResourceIdentity() |
||
90 | |||
91 | /** |
||
92 | * @inheritdoc |
||
93 | */ |
||
94 | public function getExtraParameters(): array |
||
98 | } |
||
99 |