1 | <?php |
||
32 | class HttpProtocol implements ProtocolInterface |
||
33 | { |
||
34 | /** |
||
35 | * @var AuthenticatorInterface |
||
36 | */ |
||
37 | private $authenticator; |
||
38 | |||
39 | /** |
||
40 | * @var HttpSenderInterface |
||
41 | */ |
||
42 | private $httpSender; |
||
43 | |||
44 | /** |
||
45 | * @var PayloadEncoderInterface |
||
46 | */ |
||
47 | private $payloadEncoder; |
||
48 | |||
49 | /** |
||
50 | * @var UriFactoryInterface |
||
51 | */ |
||
52 | private $uriFactory; |
||
53 | |||
54 | /** |
||
55 | * @var HttpProtocolVisitorInterface |
||
56 | */ |
||
57 | private $visitor; |
||
58 | |||
59 | /** |
||
60 | * @var ExceptionFactoryInterface |
||
61 | */ |
||
62 | private $exceptionFactory; |
||
63 | |||
64 | /** |
||
65 | * Constructor. |
||
66 | * |
||
67 | * @param AuthenticatorInterface $authenticator |
||
68 | * @param HttpSenderInterface $httpSender |
||
69 | * @param PayloadEncoderInterface $payloadEncoder |
||
70 | * @param UriFactoryInterface $uriFactory |
||
71 | * @param HttpProtocolVisitorInterface $visitor |
||
72 | * @param ExceptionFactoryInterface $exceptionFactory |
||
73 | */ |
||
74 | public function __construct( |
||
89 | |||
90 | /** |
||
91 | * {@inheritdoc} |
||
92 | * |
||
93 | * @throws HttpSenderException |
||
94 | */ |
||
95 | public function send(): void |
||
99 | |||
100 | /** |
||
101 | * Inner send process |
||
102 | * |
||
103 | * @param Receiver $receiver |
||
104 | * @param Notification $notification |
||
105 | * @param bool $sandbox |
||
106 | * |
||
107 | * @throws SendNotificationException |
||
108 | */ |
||
109 | public function prepare(Receiver $receiver, Notification $notification, bool $sandbox) |
||
133 | } |
||
134 |