| Total Complexity | 3 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | abstract class AbstractMessageHandlerMiddleware implements Middleware |
||
| 17 | { |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var HttpClientInterface |
||
| 21 | */ |
||
| 22 | protected $httpClient; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @return string |
||
| 26 | */ |
||
| 27 | abstract protected function getMessageType(): string; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * HandleSubscriptionConfirmationMiddleware constructor. |
||
| 31 | * |
||
| 32 | * @param HttpClientInterface $httpClient |
||
| 33 | */ |
||
| 34 | public function __construct(HttpClientInterface $httpClient) |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @inheritdoc |
||
| 41 | * |
||
| 42 | * @throws \InvalidArgumentException |
||
| 43 | * @throws \RuntimeException |
||
| 44 | */ |
||
| 45 | public function handle(Request $request, Closure $next) |
||
| 59 |