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