1 | <?php declare(strict_types=1); |
||
30 | class AuthorizationException extends RuntimeException implements AuthorizationExceptionInterface |
||
31 | { |
||
32 | /** |
||
33 | * @var string |
||
34 | */ |
||
35 | private $action; |
||
36 | |||
37 | /** |
||
38 | * @var string|null |
||
39 | */ |
||
40 | private $resourceType; |
||
41 | |||
42 | /** |
||
43 | * @var string|int|null |
||
44 | */ |
||
45 | private $resourceIdentity; |
||
46 | |||
47 | /** |
||
48 | * @var array |
||
49 | */ |
||
50 | private $extraParameters; |
||
51 | |||
52 | /** |
||
53 | 1 | * @param string $action |
|
54 | * @param null|string $resourceType |
||
55 | * @param int|null|string $resourceIdentity |
||
56 | * @param array $extraParams |
||
57 | */ |
||
58 | public function __construct( |
||
71 | |||
72 | 1 | /** |
|
73 | * @inheritdoc |
||
74 | */ |
||
75 | public function getAction(): string |
||
79 | |||
80 | 1 | /** |
|
81 | * @inheritdoc |
||
82 | */ |
||
83 | public function getResourceType(): ?string |
||
87 | |||
88 | 1 | /** |
|
89 | * @inheritdoc |
||
90 | */ |
||
91 | public function getResourceIdentity() |
||
95 | |||
96 | 1 | /** |
|
97 | * @inheritdoc |
||
98 | */ |
||
99 | public function getExtraParameters(): array |
||
103 | } |
||
104 |