1 | <?php |
||
22 | class History |
||
23 | { |
||
24 | use DocumentTrait; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | * |
||
29 | * @ES\Property(type="string", options={"index"="not_analyzed"}) |
||
30 | */ |
||
31 | private $key; |
||
32 | |||
33 | /** |
||
34 | * @var string |
||
35 | * |
||
36 | * @ES\Property(type="string", options={"index"="not_analyzed"}) |
||
37 | */ |
||
38 | private $locale; |
||
39 | |||
40 | /** |
||
41 | * @var string |
||
42 | * |
||
43 | * @ES\Property(type="string", options={"index"="not_analyzed"}) |
||
44 | */ |
||
45 | private $message; |
||
46 | |||
47 | /** |
||
48 | * @var string |
||
49 | * |
||
50 | * @ES\Property(type="string", options={"index"="not_analyzed"}) |
||
51 | */ |
||
52 | private $domain; |
||
53 | |||
54 | /** |
||
55 | * @var \DateTime |
||
56 | * |
||
57 | * @ES\Property(type="date") |
||
58 | */ |
||
59 | private $createdAt; |
||
60 | |||
61 | /** |
||
62 | * Sets timestamps. |
||
63 | */ |
||
64 | public function __construct() |
||
68 | |||
69 | /** |
||
70 | * @param string $key |
||
71 | * |
||
72 | * @return History |
||
73 | */ |
||
74 | public function setKey($key) |
||
80 | |||
81 | /** |
||
82 | * @return string |
||
83 | */ |
||
84 | public function getKey() |
||
88 | |||
89 | /** |
||
90 | * @param string $locale |
||
91 | * |
||
92 | * @return History |
||
93 | */ |
||
94 | public function setLocale($locale) |
||
100 | |||
101 | /** |
||
102 | * @return string |
||
103 | */ |
||
104 | public function getLocale() |
||
108 | |||
109 | /** |
||
110 | * @param string $message |
||
111 | * |
||
112 | * @return History |
||
113 | */ |
||
114 | public function setMessage($message) |
||
120 | |||
121 | /** |
||
122 | * @return string |
||
123 | */ |
||
124 | public function getMessage() |
||
128 | |||
129 | /** |
||
130 | * @param string $domain |
||
131 | * |
||
132 | * @return History |
||
133 | */ |
||
134 | public function setDomain($domain) |
||
140 | |||
141 | /** |
||
142 | * @return string |
||
143 | */ |
||
144 | public function getDomain() |
||
148 | |||
149 | /** |
||
150 | * @return \DateTime |
||
151 | */ |
||
152 | public function getCreatedAt() |
||
156 | |||
157 | /** |
||
158 | * @param \DateTime $createdAt |
||
159 | */ |
||
160 | public function setCreatedAt($createdAt) |
||
164 | } |
||
165 |