1 | <?php |
||
7 | class Catalog |
||
8 | { |
||
9 | /** @var array */ |
||
10 | protected $headers; |
||
11 | |||
12 | /** @var array */ |
||
13 | protected $entries; |
||
14 | |||
15 | /** |
||
16 | * @param Entry[] $entries |
||
17 | */ |
||
18 | public function __construct(array $entries = array()) |
||
24 | |||
25 | public function addEntry(Entry $entry) |
||
33 | |||
34 | public function addHeaders(array $headers) |
||
38 | |||
39 | /** |
||
40 | * @param string $msgid |
||
41 | * @param string|null $msgctxt |
||
42 | */ |
||
43 | public function removeEntry($msgid, $msgctxt = null) |
||
50 | |||
51 | /** |
||
52 | * @return array |
||
53 | */ |
||
54 | public function getHeaders() |
||
58 | |||
59 | /** |
||
60 | * @return Entry[] |
||
61 | */ |
||
62 | public function getEntries() |
||
66 | |||
67 | /** |
||
68 | * @param string $msgId |
||
69 | * @param string|null $context |
||
70 | * |
||
71 | * @return Entry|null |
||
72 | */ |
||
73 | public function getEntry($msgId, $context = null) |
||
82 | |||
83 | /** |
||
84 | * @param string $msgId |
||
85 | * @param string|null $context |
||
86 | * |
||
87 | * @return string |
||
88 | */ |
||
89 | private function getEntryHash($msgId, $context = null) |
||
93 | } |
||
94 |