1 | <?php |
||
25 | class HistoryManager |
||
26 | { |
||
27 | /** |
||
28 | * @var Repository |
||
29 | */ |
||
30 | private $repository; |
||
31 | |||
32 | /** |
||
33 | * @param Repository $repository |
||
34 | */ |
||
35 | public function __construct(Repository $repository) |
||
39 | |||
40 | /** |
||
41 | * Returns an array of history objects grouped by locales |
||
42 | * |
||
43 | * @param Translation $translation |
||
44 | * |
||
45 | * @return array |
||
46 | */ |
||
47 | public function getHistory(Translation $translation) |
||
59 | |||
60 | /** |
||
61 | * @param Message $message |
||
62 | * @param Translation $translation |
||
63 | */ |
||
64 | public function addHistory(Message $message, Translation $translation) |
||
75 | |||
76 | /** |
||
77 | * Returns message history. |
||
78 | * |
||
79 | * @param Translation $translation |
||
80 | * |
||
81 | * @return DocumentIterator |
||
82 | */ |
||
83 | private function getUnorderedHistory(Translation $translation) |
||
92 | } |
||
93 |