Total Complexity | 3 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
9 | class PostPolicy implements ServerRequestPolicyInterface |
||
10 | { |
||
11 | use ExpectsPostTrait; |
||
|
|||
12 | |||
13 | /** |
||
14 | * @var int[] |
||
15 | */ |
||
16 | protected array $posts = []; |
||
17 | |||
18 | public function __construct(int ...$posts) |
||
19 | { |
||
20 | $this->posts = $posts; |
||
21 | } |
||
22 | |||
23 | /** |
||
24 | * Get the value of posts |
||
25 | * |
||
26 | * @return int[] |
||
27 | */ |
||
28 | public function getPosts(): array |
||
29 | { |
||
30 | return $this->posts; |
||
31 | } |
||
32 | |||
33 | public function approvesRequest(ServerRequestInterface $request): bool |
||
36 | } |
||
37 | } |
||
38 |