Total Complexity | 2 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | class StaticPageRegistry implements PageRegistryInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var array|BlockInterface[] |
||
14 | */ |
||
15 | private $pages; |
||
16 | |||
17 | /** |
||
18 | * @param BlockInterface[] $pages An array associating the path (as key) to a Page object. The key must start with a '/' |
||
19 | */ |
||
20 | public function __construct(array $pages) |
||
23 | } |
||
24 | |||
25 | public function getPage(ServerRequestInterface $request): ?BlockInterface |
||
30 |