| Total Complexity | 4 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 5 | class Push |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var AdapterInterface |
||
| 9 | */ |
||
| 10 | protected $adapter; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Constructor. |
||
| 14 | * |
||
| 15 | * @param AdapterInterface $adapter The adapter |
||
| 16 | */ |
||
| 17 | 1 | public function __construct(AdapterInterface $adapter) |
|
| 18 | { |
||
| 19 | 1 | $this->adapter = $adapter; |
|
| 20 | 1 | } |
|
| 21 | |||
| 22 | /** |
||
| 23 | * Get the Adapter. |
||
| 24 | * |
||
| 25 | * @return AdapterInterface adapter |
||
| 26 | */ |
||
| 27 | 1 | public function getAdapter() |
|
| 28 | { |
||
| 29 | 1 | return $this->adapter; |
|
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Send a downstream message to one or more devices. |
||
| 34 | * |
||
| 35 | * @return bool |
||
| 36 | */ |
||
| 37 | 1 | public function send() |
|
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Return the response of the push. |
||
| 44 | * |
||
| 45 | * @return \Psr\Http\Message\ResponseInterface |
||
| 46 | */ |
||
| 47 | 1 | public function response() |
|
| 50 | } |
||
| 51 | } |
||
| 52 |