| Total Complexity | 5 |
| Total Lines | 51 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class PushMessageContentLocation extends PushMessageContent |
||
| 15 | { |
||
| 16 | public const TYPE_NAME = 'pushMessageContentLocation'; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * True, if the location is live. |
||
| 20 | * |
||
| 21 | * @var bool |
||
| 22 | */ |
||
| 23 | protected bool $isLive; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * True, if the message is a pinned message with the specified content. |
||
| 27 | * |
||
| 28 | * @var bool |
||
| 29 | */ |
||
| 30 | protected bool $isPinned; |
||
| 31 | |||
| 32 | public function __construct(bool $isLive, bool $isPinned) |
||
| 33 | { |
||
| 34 | parent::__construct(); |
||
| 35 | |||
| 36 | $this->isLive = $isLive; |
||
| 37 | $this->isPinned = $isPinned; |
||
| 38 | } |
||
| 39 | |||
| 40 | public static function fromArray(array $array): PushMessageContentLocation |
||
| 45 | ); |
||
| 46 | } |
||
| 47 | |||
| 48 | public function typeSerialize(): array |
||
| 54 | ]; |
||
| 55 | } |
||
| 56 | |||
| 57 | public function getIsLive(): bool |
||
| 60 | } |
||
| 61 | |||
| 62 | public function getIsPinned(): bool |
||
| 67 |