| Total Complexity | 2 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | class ResponseFactory implements ResponseFactoryInterfaceAlias |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @var StreamFactoryInterface The stream factory used for generating response bodies. |
||
| 22 | */ |
||
| 23 | protected $streamFactory; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Constructs the ResponseFactory. |
||
| 27 | * |
||
| 28 | * @param StreamFactoryInterface $streamFactory The stream factory. |
||
| 29 | */ |
||
| 30 | public function __construct(StreamFactoryInterface $streamFactory) |
||
| 31 | { |
||
| 32 | $this->streamFactory = $streamFactory; |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @inheritDoc |
||
| 37 | */ |
||
| 38 | public function createResponse(int $code = 200, string $reasonPhrase = ''): ResponseInterface |
||
| 45 | ); |
||
| 46 | } |
||
| 48 |