| 1 | <?php  | 
            ||
| 17 | final class WebhookProcessor implements PsrProcessor, CommandSubscriberInterface  | 
            ||
| 18 | { | 
            ||
| 19 | public const NAME = 'webhook-processor';  | 
            ||
| 20 | |||
| 21 | /** @var WebhookConsumer */  | 
            ||
| 22 | private $consumer;  | 
            ||
| 23 | |||
| 24 | /**  | 
            ||
| 25 | * RatesProcessor constructor.  | 
            ||
| 26 | *  | 
            ||
| 27 | * @param WebhookConsumer $consumer  | 
            ||
| 28 | */  | 
            ||
| 29 | public function __construct(WebhookConsumer $consumer)  | 
            ||
| 33 | |||
| 34 | /**  | 
            ||
| 35 | * @param PsrMessage $message  | 
            ||
| 36 | * @param PsrContext $context  | 
            ||
| 37 | *  | 
            ||
| 38 | * @return string  | 
            ||
| 39 | */  | 
            ||
| 40 | public function process(PsrMessage $message, PsrContext $context): string  | 
            ||
| 48 | |||
| 49 | /**  | 
            ||
| 50 | * @return array  | 
            ||
| 51 | */  | 
            ||
| 52 | public static function getSubscribedCommand(): array  | 
            ||
| 63 | }  | 
            ||
| 64 |