1 | <?php |
||
5 | class RenderedPage extends AbstractPage |
||
6 | { |
||
7 | /** @var null|string */ |
||
8 | private $featuredImageUrl; |
||
9 | |||
10 | /** @var null|string */ |
||
11 | private $slug; |
||
12 | |||
13 | /** @var null|string */ |
||
14 | private $keywords; |
||
15 | |||
16 | /** @var null|string */ |
||
17 | private $description; |
||
18 | |||
19 | /** @var null|string */ |
||
20 | private $canonical; |
||
21 | |||
22 | const META_DATA = ['keywords', 'description', 'canonical']; |
||
23 | |||
24 | public function render(array $params = []) |
||
30 | |||
31 | /** |
||
32 | * Renders miniature version of page for list |
||
33 | * @return string |
||
34 | */ |
||
35 | public function renderMiniature(): string |
||
47 | |||
48 | private function setMetaData(): void |
||
60 | |||
61 | /** |
||
62 | * @param null|string $slug |
||
63 | */ |
||
64 | public function setSlug(?string $slug): void |
||
68 | |||
69 | /** |
||
70 | * @param null|string $keywords |
||
71 | */ |
||
72 | public function setKeywords(?string $keywords): void |
||
76 | |||
77 | /** |
||
78 | * @param null|string $description |
||
79 | */ |
||
80 | public function setDescription(?string $description): void |
||
84 | |||
85 | /** |
||
86 | * @param null|string $featuredImageUrl |
||
87 | */ |
||
88 | public function setFeaturedImageUrl(?string $featuredImageUrl): void |
||
92 | |||
93 | /** |
||
94 | * @param null|string $canonical |
||
95 | */ |
||
96 | public function setCanonical(?string $canonical): void |
||
100 | } |
||
101 |