1 | <?php |
||
24 | class HistoryManager |
||
25 | { |
||
26 | /** |
||
27 | * @var Repository |
||
28 | */ |
||
29 | private $repository; |
||
30 | |||
31 | /** |
||
32 | * @param Repository $repository |
||
33 | */ |
||
34 | public function __construct(Repository $repository) |
||
38 | |||
39 | /** |
||
40 | * Returns message history. |
||
41 | * |
||
42 | * @param string $id |
||
43 | * |
||
44 | * @return DocumentIterator |
||
45 | */ |
||
46 | public function getHistory($id) |
||
54 | |||
55 | /** |
||
56 | * @param $id |
||
57 | * @return array |
||
58 | */ |
||
59 | public function getOrderedHistory($id) |
||
71 | |||
72 | /** |
||
73 | * @param Message $message |
||
74 | * @param $id |
||
75 | * @param $locale |
||
76 | */ |
||
77 | public function addHistory(Message $message, $id, $locale) |
||
88 | } |
||
89 |