1 | <?php |
||
21 | class History |
||
22 | { |
||
23 | /** |
||
24 | * @var string |
||
25 | * |
||
26 | * @ES\Id() |
||
27 | */ |
||
28 | private $id; |
||
29 | |||
30 | /** |
||
31 | * @var string |
||
32 | * |
||
33 | * @ES\Property(type="string", options={"index"="not_analyzed"}) |
||
34 | */ |
||
35 | private $key; |
||
36 | |||
37 | /** |
||
38 | * @var string |
||
39 | * |
||
40 | * @ES\Property(type="string", options={"index"="not_analyzed"}) |
||
41 | */ |
||
42 | private $locale; |
||
43 | |||
44 | /** |
||
45 | * @var string |
||
46 | * |
||
47 | * @ES\Property(type="string", options={"index"="not_analyzed"}) |
||
48 | */ |
||
49 | private $message; |
||
50 | |||
51 | /** |
||
52 | * @var string |
||
53 | * |
||
54 | * @ES\Property(type="string", options={"index"="not_analyzed"}) |
||
55 | */ |
||
56 | private $domain; |
||
57 | |||
58 | /** |
||
59 | * @var \DateTime |
||
60 | * |
||
61 | * @ES\Property(type="date") |
||
62 | */ |
||
63 | private $createdAt; |
||
64 | |||
65 | /** |
||
66 | * Sets timestamps. |
||
67 | */ |
||
68 | public function __construct() |
||
72 | |||
73 | /** |
||
74 | * Sets document ID. |
||
75 | * |
||
76 | * @param string $id |
||
77 | * |
||
78 | * @return $this |
||
79 | */ |
||
80 | public function setId($id) |
||
86 | |||
87 | /** |
||
88 | * Returns document ID. |
||
89 | * |
||
90 | * @return string |
||
91 | */ |
||
92 | public function getId() |
||
96 | |||
97 | /** |
||
98 | * @param string $key |
||
99 | * |
||
100 | * @return History |
||
101 | */ |
||
102 | public function setKey($key) |
||
108 | |||
109 | /** |
||
110 | * @return string |
||
111 | */ |
||
112 | public function getKey() |
||
116 | |||
117 | /** |
||
118 | * @param string $locale |
||
119 | * |
||
120 | * @return History |
||
121 | */ |
||
122 | public function setLocale($locale) |
||
128 | |||
129 | /** |
||
130 | * @return string |
||
131 | */ |
||
132 | public function getLocale() |
||
136 | |||
137 | /** |
||
138 | * @param string $message |
||
139 | * |
||
140 | * @return History |
||
141 | */ |
||
142 | public function setMessage($message) |
||
148 | |||
149 | /** |
||
150 | * @return string |
||
151 | */ |
||
152 | public function getMessage() |
||
156 | |||
157 | /** |
||
158 | * @param string $domain |
||
159 | * |
||
160 | * @return History |
||
161 | */ |
||
162 | public function setDomain($domain) |
||
168 | |||
169 | /** |
||
170 | * @return string |
||
171 | */ |
||
172 | public function getDomain() |
||
176 | |||
177 | /** |
||
178 | * @return \DateTime |
||
179 | */ |
||
180 | public function getCreatedAt() |
||
184 | |||
185 | /** |
||
186 | * @param \DateTime $createdAt |
||
187 | */ |
||
188 | public function setCreatedAt($createdAt) |
||
192 | } |
||
193 |