1 | <?php |
||
17 | class KeySearchResult implements CreatableFromArray |
||
18 | { |
||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | private $id; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | private $name; |
||
28 | |||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | private $description; |
||
33 | |||
34 | /** |
||
35 | * @var string |
||
36 | */ |
||
37 | private $nameHash; |
||
38 | |||
39 | /** |
||
40 | * @var bool |
||
41 | */ |
||
42 | private $plural; |
||
43 | |||
44 | /** |
||
45 | * @var array |
||
46 | */ |
||
47 | private $tags = []; |
||
48 | |||
49 | /** |
||
50 | * @var string |
||
51 | */ |
||
52 | private $createdAt; |
||
53 | |||
54 | /** |
||
55 | * @var string |
||
56 | */ |
||
57 | private $updatedAt; |
||
58 | |||
59 | /** |
||
60 | * @param array $data |
||
61 | * |
||
62 | * @return KeySearchResult |
||
63 | */ |
||
64 | public static function createFromArray(array $data) |
||
95 | |||
96 | public function getId(): string |
||
100 | |||
101 | private function setId(string $id) |
||
105 | |||
106 | public function getName(): string |
||
110 | |||
111 | private function setName(string $name) |
||
115 | |||
116 | public function isPlural(): bool |
||
120 | |||
121 | private function setPlural(bool $plural) |
||
125 | |||
126 | public function getTags(): array |
||
130 | |||
131 | private function setTags(array $tags) |
||
135 | |||
136 | public function getDescription(): string |
||
140 | |||
141 | private function setDescription(string $description) |
||
145 | |||
146 | public function getNameHash(): string |
||
150 | |||
151 | private function setNameHash(string $nameHash) |
||
155 | |||
156 | public function getCreatedAt(): string |
||
160 | |||
161 | private function setCreatedAt(string $createdAt) |
||
165 | |||
166 | public function getUpdatedAt(): string |
||
170 | |||
171 | private function setUpdatedAt(string $updatedAt) |
||
175 | } |
||
176 |