| 1 | <?php  | 
            ||
| 20 | class CompositeStorage extends BaseObject implements StorageInterface  | 
            ||
| 21 | { | 
            ||
| 22 | /** @var StorageInterface[] */  | 
            ||
| 23 | private $storages;  | 
            ||
| 24 | |||
| 25 | public function init()  | 
            ||
| 33 | |||
| 34 | /**  | 
            ||
| 35 | * @param string $pageName  | 
            ||
| 36 | * @return AbstractPage|null  | 
            ||
| 37 | */  | 
            ||
| 38 | public function getPage(string $pageName): ?PageInterface  | 
            ||
| 48 | |||
| 49 | /**  | 
            ||
| 50 | * @param null|string $listName  | 
            ||
| 51 | * @return PagesList|null  | 
            ||
| 52 | */  | 
            ||
| 53 | public function getList(string $listName = null): ?PagesList  | 
            ||
| 63 | |||
| 64 | /**  | 
            ||
| 65 | * @param StorageInterface[] $storages  | 
            ||
| 66 | */  | 
            ||
| 67 | public function setStorages(array $storages): void  | 
            ||
| 71 | }  | 
            ||
| 72 |