| Total Complexity | 3 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | final class ValidationMiddleware implements MiddlewareInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var ValidatorInterface |
||
| 14 | */ |
||
| 15 | private $validator; |
||
| 16 | |||
| 17 | 2 | public function __construct(ValidatorInterface $validator) |
|
| 18 | { |
||
| 19 | 2 | $this->validator = $validator; |
|
| 20 | 2 | } |
|
| 21 | |||
| 22 | 2 | public function deliver(MessageInterface $message, callable $next): void |
|
| 31 | 1 | } |
|
| 32 | } |
||
| 33 |