krz/hn

A brutalist web client for Hacker News.

clone: git clone https://gitbay.org/krz/hn.git

48acbcbc213f1bf4ff1237f183a83f5e927ee383

unsigned

author: Christian Cleberg <hello@cleberg.net> · 2023-06-14T19:50:00Z

add class properties
 src/View/class-template.php | 23 ++++++++++++++++++++++-
 1 file changed, 22 insertions(+), 1 deletion(-)

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;