| Total Complexity | 4 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class AbstractHandler implements HandlerInterface |
||
| 6 | { |
||
| 7 | private ?HandlerInterface $next; |
||
| 8 | |||
| 9 | 2 | public function __construct() |
|
| 12 | 2 | } |
|
| 13 | |||
| 14 | 2 | public function setNext(HandlerInterface $handler): HandlerInterface |
|
| 15 | { |
||
| 16 | 2 | $this->next = $handler; |
|
| 17 | |||
| 18 | 2 | return $handler; |
|
| 19 | } |
||
| 20 | |||
| 21 | 2 | public function handle(ContextInterface $context) |
|
| 25 | } |
||
| 26 | } |
||
| 27 | } |