| Total Complexity | 3 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 5 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | abstract class AbstractStrategy implements StrategyInterface |
||
| 10 | { |
||
| 11 | protected array $responseDecorators = []; |
||
| 12 | |||
| 13 | 45 | public function addResponseDecorator(callable $decorator): StrategyInterface |
|
| 14 | { |
||
| 15 | 45 | $this->responseDecorators[] = $decorator; |
|
| 16 | 45 | return $this; |
|
| 17 | } |
||
| 18 | |||
| 19 | 33 | protected function decorateResponse(ResponseInterface $response): ResponseInterface |
|
| 26 | } |
||
| 27 | } |
||
| 28 |