1 | <?php |
||
9 | class Entry |
||
10 | { |
||
11 | private const CHANNELS = [ |
||
12 | 'messaging', |
||
13 | 'standby', |
||
14 | ]; |
||
15 | |||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | protected $id; |
||
20 | |||
21 | /** |
||
22 | * @var int |
||
23 | */ |
||
24 | protected $time; |
||
25 | |||
26 | /** |
||
27 | * @var array |
||
28 | */ |
||
29 | protected $events; |
||
30 | |||
31 | /** |
||
32 | * Entry constructor. |
||
33 | */ |
||
34 | 4 | public function __construct(string $id, int $time, array $events) |
|
40 | |||
41 | 1 | public function getId(): string |
|
45 | |||
46 | 1 | public function getTime(): int |
|
50 | |||
51 | 3 | public function getEvents(): array |
|
55 | |||
56 | /** |
||
57 | * @return \Kerox\Messenger\Model\Callback\Entry |
||
58 | */ |
||
59 | 4 | public static function create(array $entry): self |
|
73 | } |
||
74 |