| Total Complexity | 2 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 6 | ||
| Bugs | 2 | Features | 0 |
| 1 | <?php |
||
| 10 | trait Request |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @psalm-suppress PropertyNotSetInConstructor |
||
| 14 | */ |
||
| 15 | private ServerRequestInterface $request; |
||
| 16 | |||
| 17 | 314 | public function setRequest(?ServerRequestInterface $request = null): void |
|
| 18 | { |
||
| 19 | 314 | $this->request = $request ?? ServerRequestCreator::createFromGlobals(); |
|
| 20 | } |
||
| 21 | |||
| 22 | 165 | public function getRequest(): ServerRequestInterface |
|
| 25 | } |
||
| 26 | } |
||
| 27 |