1 | <?php |
||
21 | class History implements \JsonSerializable |
||
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 $translation; |
||
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") |
||
48 | */ |
||
49 | private $message; |
||
50 | |||
51 | /** |
||
52 | * @var \DateTime |
||
53 | * |
||
54 | * @ES\Property(type="date") |
||
55 | */ |
||
56 | private $updatedAt; |
||
57 | |||
58 | /** |
||
59 | * Sets document ID. |
||
60 | * |
||
61 | * @param string $id |
||
62 | * |
||
63 | * @return $this |
||
64 | */ |
||
65 | public function setId($id) |
||
71 | |||
72 | /** |
||
73 | * Returns document ID. |
||
74 | * |
||
75 | * @return string |
||
76 | */ |
||
77 | public function getId() |
||
81 | |||
82 | /** |
||
83 | * @param string $translation |
||
84 | * |
||
85 | * @return History |
||
86 | */ |
||
87 | public function setTranslation($translation) |
||
93 | |||
94 | /** |
||
95 | * @return string |
||
96 | */ |
||
97 | public function getTranslation() |
||
101 | |||
102 | /** |
||
103 | * @param string $locale |
||
104 | * |
||
105 | * @return History |
||
106 | */ |
||
107 | public function setLocale($locale) |
||
113 | |||
114 | /** |
||
115 | * @return string |
||
116 | */ |
||
117 | public function getLocale() |
||
121 | |||
122 | /** |
||
123 | * @param string $message |
||
124 | * |
||
125 | * @return History |
||
126 | */ |
||
127 | public function setMessage($message) |
||
133 | |||
134 | /** |
||
135 | * @return string |
||
136 | */ |
||
137 | public function getMessage() |
||
141 | |||
142 | /** |
||
143 | * @return \DateTime |
||
144 | */ |
||
145 | public function getUpdatedAt() |
||
149 | |||
150 | /** |
||
151 | * @param \DateTime $updatedAt |
||
152 | */ |
||
153 | public function setUpdatedAt($updatedAt) |
||
157 | |||
158 | /** |
||
159 | * {@inheritdoc} |
||
160 | */ |
||
161 | public function jsonSerialize() |
||
171 | } |
||
172 |