| 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 | * @return array |
||
| 41 | */ |
||
| 42 | public function getHeaders() |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @return Entry[] |
||
| 49 | */ |
||
| 50 | public function getEntries() |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @param string $msgId |
||
| 57 | * @param string|null $context |
||
| 58 | * |
||
| 59 | * @return Entry|null |
||
| 60 | */ |
||
| 61 | public function getEntry($msgId, $context = null) |
||
| 70 | |||
| 71 | /** |
||
| 72 | * @param string $msgId |
||
| 73 | * @param string|null $context |
||
| 74 | * |
||
| 75 | * @return string |
||
| 76 | */ |
||
| 77 | private function getEntryHash($msgId, $context = null) |
||
| 81 | } |
||
| 82 |