1 | <?php |
||
6 | class Entry |
||
7 | { |
||
8 | |||
9 | /** |
||
10 | * @var string |
||
11 | */ |
||
12 | protected $id; |
||
13 | |||
14 | /** |
||
15 | * @var int |
||
16 | */ |
||
17 | protected $time; |
||
18 | |||
19 | /** |
||
20 | * @var array |
||
21 | */ |
||
22 | protected $events; |
||
23 | |||
24 | /** |
||
25 | * Entry constructor. |
||
26 | * |
||
27 | * @param string $id |
||
28 | * @param int $time |
||
29 | * @param array $events |
||
30 | */ |
||
31 | public function __construct(string $id, int $time, array $events) |
||
37 | |||
38 | /** |
||
39 | * @return string |
||
40 | */ |
||
41 | public function getId(): string |
||
45 | |||
46 | /** |
||
47 | * @return int |
||
48 | */ |
||
49 | public function getTime(): int |
||
53 | |||
54 | /** |
||
55 | * @return array |
||
56 | */ |
||
57 | public function getEvents(): array |
||
61 | |||
62 | /** |
||
63 | * @param array $entry |
||
64 | * @return static |
||
65 | */ |
||
66 | public static function create(array $entry) |
||
75 | } |
||
76 |