Commit 48acbcbc21
Unsigned
Layout: unified · split
src/View/class-template.php +22 −1
| @@ -9,7 +9,28 @@ namespace HN\View; | ||
| 9 | 9 | */ |
| 10 | 10 | class Template |
| 11 | 11 | { |
| 12 | public function __construct(string $canonical_url, string $page_description, string $page_title, string $content_col) { | |
| 12 | /** | |
| 13 | * @var string | |
| 14 | */ | |
| 15 | private $canonical_url; | |
| 16 | /** | |
| 17 | * @var string | |
| 18 | */ | |
| 19 | private $description; | |
| 20 | /** | |
| 21 | * @var string | |
| 22 | */ | |
| 23 | private $title; | |
| 24 | /** | |
| 25 | * @var string | |
| 26 | */ | |
| 27 | private $content; | |
| 28 | /** | |
| 29 | * @var false|string | |
| 30 | */ | |
| 31 | private $current_year; | |
| 32 | ||
| 33 | public function __construct(string $canonical_url, string $page_description, string $page_title, string $content_col) { | |
| 13 | 34 | $this->canonical_url = $canonical_url; |
| 14 | 35 | $this->description = $page_description; |
| 15 | 36 | $this->title = $page_title; |