| Total Complexity | 2 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | trait RequestTrait |
||
| 12 | { |
||
| 13 | |||
| 14 | /** @var RequestInterface|null $request */ |
||
| 15 | protected $request; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @return RequestInterface|null |
||
| 19 | */ |
||
| 20 | public function getRequest(): ?RequestInterface |
||
| 21 | { |
||
| 22 | return $this->request; |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param RequestInterface|null $request |
||
| 27 | */ |
||
| 28 | public function setRequest(?RequestInterface $request): void |
||
| 31 | } |
||
| 32 | } |
||
| 33 |