1 | <?php |
||
11 | final class PushType |
||
12 | { |
||
13 | const TYPE_ALERT = 'alert'; |
||
14 | const TYPE_BACKGROUND = 'background'; |
||
15 | |||
16 | private $value; |
||
17 | |||
18 | public static function alert(): PushType |
||
22 | |||
23 | public static function background(): PushType |
||
27 | |||
28 | public function __toString(): string |
||
32 | |||
33 | /** |
||
34 | * @param string $type |
||
35 | * @throws \InvalidArgumentException |
||
36 | */ |
||
37 | private function __construct(string $type) |
||
52 | } |
||
53 |