| Total Complexity | 2 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | abstract class AbstractController implements RequestMatcherInterface |
||
| 14 | { |
||
| 15 | use WithConfigTrait; |
||
| 16 | |||
| 17 | protected LoggerInterface $logger; |
||
| 18 | protected TransportInterface $transport; |
||
| 19 | protected StorageInterface $storage; |
||
| 20 | |||
| 21 | abstract public function __invoke(ServerRequestInterface $request): PromiseInterface; |
||
| 22 | |||
| 23 | 29 | final public function withTransport(TransportInterface $transport): self |
|
| 24 | { |
||
| 25 | 29 | $clone = clone $this; |
|
| 26 | 29 | $clone->transport = $transport; |
|
| 27 | |||
| 28 | 29 | return $clone; |
|
| 29 | } |
||
| 30 | |||
| 31 | 29 | final public function withStorage(StorageInterface $storage): self |
|
| 37 | } |
||
| 38 | } |
||
| 39 |