| Conditions | 5 |
| Paths | 5 |
| Total Lines | 23 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | private WebhookValidator $webhookValidator; |
||
| 12 | |||
| 13 | public function __construct(WebhookValidator $webhookValidator) |
||
| 14 | { |
||
| 15 | $this->webhookValidator = $webhookValidator; |
||
| 16 | } |
||
| 17 | |||
| 18 | public function handle(Request $request, Closure $next) |
||
| 19 | { |
||
| 20 | $this->webhookValidator->validateFromRequest($request); |
||
| 21 | |||
| 22 | return $next($request); |
||
| 23 | } |
||
| 24 | } |
||
| 25 |