diff options
| author | Christian Cleberg <[email protected]> | 2023-06-14 14:50:00 -0500 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2023-06-14 14:50:00 -0500 |
| commit | 48acbcbc213f1bf4ff1237f183a83f5e927ee383 (patch) | |
| tree | 29a506705b1385d0472f880e21848568d7ca4bf8 | |
| parent | b72d24d3916a9d8d10ce90835ebd334e0fee77c1 (diff) | |
| download | hn-48acbcbc213f1bf4ff1237f183a83f5e927ee383.tar.gz hn-48acbcbc213f1bf4ff1237f183a83f5e927ee383.tar.bz2 hn-48acbcbc213f1bf4ff1237f183a83f5e927ee383.zip | |
add class properties
| -rw-r--r-- | src/View/class-template.php | 23 |
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; |
