| 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()) |
||
| 25 | |||
| 26 | public function addEntry(Entry $entry) |
||
| 34 | |||
| 35 | public function addHeaders(array $headers) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @param string $msgid |
||
| 42 | * @param string|null $msgctxt |
||
| 43 | */ |
||
| 44 | public function removeEntry($msgid, $msgctxt = null) |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return array |
||
| 54 | */ |
||
| 55 | public function getHeaders() |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @return Entry[] |
||
| 62 | */ |
||
| 63 | public function getEntries() |
||
| 67 | |||
| 68 | /** |
||
| 69 | * @param string $msgId |
||
| 70 | * @param string|null $context |
||
| 71 | * |
||
| 72 | * @return Entry|null |
||
| 73 | */ |
||
| 74 | public function getEntry($msgId, $context = null) |
||
| 83 | |||
| 84 | /** |
||
| 85 | * @param string $msgId |
||
| 86 | * @param string|null $context |
||
| 87 | * |
||
| 88 | * @return string |
||
| 89 | */ |
||
| 90 | private function getEntryHash($msgId, $context = null) |
||
| 94 | } |
||
| 95 |