1 | <?php |
||
5 | class Push |
||
6 | { |
||
7 | |||
8 | /** |
||
9 | * @var AdapterInterface |
||
10 | */ |
||
11 | protected $adapter; |
||
12 | |||
13 | /** |
||
14 | * Constructor. |
||
15 | * |
||
16 | * @param AdapterInterface $adapter The adapter |
||
17 | */ |
||
18 | public function __construct(AdapterInterface $adapter) |
||
22 | |||
23 | /** |
||
24 | * Get the Adapter. |
||
25 | * |
||
26 | * @return AdapterInterface adapter |
||
27 | */ |
||
28 | public function getAdapter() |
||
32 | |||
33 | /** |
||
34 | * Send a downstream message to one or more devices. |
||
35 | * |
||
36 | * @return bool |
||
37 | */ |
||
38 | public function send() |
||
42 | |||
43 | /** |
||
44 | * Return the response of the push. |
||
45 | * |
||
46 | * @return \Psr\Http\Message\ResponseInterface |
||
47 | */ |
||
48 | public function response() |
||
52 | } |
||
53 |