| 1 | <?php |
||
| 15 | class ManifestChain |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var array Manifest collection |
||
| 19 | */ |
||
| 20 | protected $manifests = array(); |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Adds manifest to chain. |
||
| 24 | * |
||
| 25 | * @param ManifestInterface $manifest |
||
| 26 | * |
||
| 27 | * @return $this |
||
| 28 | */ |
||
| 29 | 1 | public function addManifest(ManifestInterface $manifest) |
|
| 35 | |||
| 36 | /** |
||
| 37 | * Returns registered manifests. |
||
| 38 | * |
||
| 39 | * @return array Manifest collection |
||
| 40 | */ |
||
| 41 | 2 | public function getManifests() |
|
| 45 | |||
| 46 | /** |
||
| 47 | * Finds a manifest by name. |
||
| 48 | * |
||
| 49 | * @param string $name Manifest name |
||
| 50 | * |
||
| 51 | * @return ManifestInterface |
||
| 52 | */ |
||
| 53 | 1 | public function getManifest($name) |
|
| 59 | } |
||
| 60 |