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