Total Complexity | 2 |
Total Lines | 16 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | trait Guarded |
||
10 | { |
||
11 | protected Guardian $guardian; |
||
12 | |||
13 | abstract protected function getRequest(): ServerRequestInterface; |
||
14 | abstract protected function getResponse(): ResponseInterface; |
||
15 | |||
16 | private function getGuardian(): Guardian |
||
20 | } |
||
21 | |||
22 | protected function guard(\ReflectionObject|\ReflectionMethod $subject): ?ResponseInterface |
||
27 |