Commit 48acbcbc21

48acbcbc213f1bf4ff1237f183a83f5e927ee383

parent: b72d24d391

Unsigned

cmc <hello@cleberg.net> · 2023-06-14 19:50 UTC

add class properties

Layout: unified · split

src/View/class-template.php +22 −1
@@ -9,7 +9,28 @@ namespace HN\View;
9*/ 9*/
10class Template 10class 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 $this->canonical_url = $canonical_url; 34 $this->canonical_url = $canonical_url;
14 $this->description = $page_description; 35 $this->description = $page_description;
15 $this->title = $page_title; 36 $this->title = $page_title;