From 48acbcbc213f1bf4ff1237f183a83f5e927ee383 Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Wed, 14 Jun 2023 14:50:00 -0500 Subject: add class properties --- src/View/class-template.php | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/View/class-template.php b/src/View/class-template.php index ddcb1fa..f0bfdcd 100644 --- a/src/View/class-template.php +++ b/src/View/class-template.php @@ -9,7 +9,28 @@ namespace HN\View; */ class Template { - public function __construct(string $canonical_url, string $page_description, string $page_title, string $content_col) { + /** + * @var string + */ + private $canonical_url; + /** + * @var string + */ + private $description; + /** + * @var string + */ + private $title; + /** + * @var string + */ + private $content; + /** + * @var false|string + */ + private $current_year; + + public function __construct(string $canonical_url, string $page_description, string $page_title, string $content_col) { $this->canonical_url = $canonical_url; $this->description = $page_description; $this->title = $page_title; -- cgit v1.2.3-70-g09d2