Total Complexity | 5 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
8 | final class AuthorizationRequest implements AuthorizationRequestInterface |
||
9 | { |
||
10 | 13 | public function __construct( |
|
11 | private AuthorizationEntityInterface $subject, |
||
12 | private AuthorizationEntityInterface $resource, |
||
13 | private string $action, |
||
14 | private array $context |
||
15 | ) |
||
16 | { |
||
17 | 13 | } |
|
18 | |||
19 | 9 | public function getSubject(): AuthorizationEntityInterface |
|
20 | { |
||
21 | 9 | return $this->subject; |
|
22 | } |
||
23 | |||
24 | 9 | public function getResource(): AuthorizationEntityInterface |
|
25 | { |
||
26 | 9 | return $this->resource; |
|
27 | } |
||
28 | |||
29 | 9 | public function getAction(): string |
|
30 | { |
||
31 | 9 | return $this->action; |
|
32 | } |
||
33 | |||
34 | 3 | public function getContext(): array |
|
37 | } |
||
38 | } |
||
39 |