| Total Complexity | 6 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | abstract class AbstractFactory implements Factory |
||
| 16 | { |
||
| 17 | protected ResponseFactoryInterface $responseFactory; |
||
| 18 | protected StreamFactoryInterface $streamFactory; |
||
| 19 | |||
| 20 | abstract public function request(): ServerRequestInterface; |
||
| 21 | |||
| 22 | 49 | public function response(int $code = 200, string $reasonPhrase = ''): ResponseInterface |
|
| 25 | } |
||
| 26 | |||
| 27 | 46 | public function stream(mixed $content = ''): StreamInterface |
|
| 38 | } |
||
| 39 | |||
| 40 | 7 | public function streamFromFile(string $filename, string $mode = 'r'): StreamInterface |
|
| 45 |