| 1 | <?php |
||
| 20 | class Receiver |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var DeviceToken |
||
| 24 | */ |
||
| 25 | private $token; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var string |
||
| 29 | */ |
||
| 30 | private $topic; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Constructor. |
||
| 34 | * |
||
| 35 | * @param DeviceToken $token |
||
| 36 | * @param string $topic |
||
| 37 | */ |
||
| 38 | public function __construct(DeviceToken $token, string $topic) |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Get token |
||
| 46 | * |
||
| 47 | * @return DeviceToken |
||
| 48 | */ |
||
| 49 | public function getToken(): DeviceToken |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Get topic |
||
| 56 | * |
||
| 57 | * @return string |
||
| 58 | */ |
||
| 59 | public function getTopic(): string |
||
| 63 | } |
||
| 64 |