aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Cleberg <hello@cleberg.net>2023-06-14 14:50:00 -0500
committerChristian Cleberg <hello@cleberg.net>2023-06-14 14:50:00 -0500
commit48acbcbc213f1bf4ff1237f183a83f5e927ee383 (patch)
tree29a506705b1385d0472f880e21848568d7ca4bf8
parentb72d24d3916a9d8d10ce90835ebd334e0fee77c1 (diff)
downloadhn-48acbcbc213f1bf4ff1237f183a83f5e927ee383.tar.gz
hn-48acbcbc213f1bf4ff1237f183a83f5e927ee383.tar.bz2
hn-48acbcbc213f1bf4ff1237f183a83f5e927ee383.zip
add class properties
-rw-r--r--src/View/class-template.php23
1 files changed, 22 insertions, 1 deletions
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;