| 1 | <?php |
||
| 7 | final class Config |
||
| 8 | { |
||
| 9 | private $applicationId; |
||
| 10 | private $applicationAuthKey; |
||
| 11 | private $userAuthKey; |
||
| 12 | |||
| 13 | public function __construct(string $applicationId, string $applicationAuthKey, string $userAuthKey = null) |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Get OneSignal application id. |
||
| 22 | */ |
||
| 23 | public function getApplicationId(): string |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Get OneSignal application authentication key. |
||
| 30 | */ |
||
| 31 | public function getApplicationAuthKey(): string |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Get user authentication key. |
||
| 38 | */ |
||
| 39 | public function getUserAuthKey(): ?string |
||
| 43 | } |
||
| 44 |