aboutsummaryrefslogtreecommitdiff
path: root/src/Controller/FeedController.php
blob: 86ae7eb7a1a4246ed21509a1abffeb009474cc53 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php

namespace HN\Controllers;

class FeedController
{
    /**
     * @var string
     */
    private string $canonical_url;
    /**
     * @var string
     */
    private string $description;
    /**
     * @var string
     */
    private string $title;
    /**
     * @var string
     */
    private string $content;
    /**
     * @var false|string
     */
    private mixed $current_year;

    public function __construct(string $canonical_url, string $description, string $title, string $content)
    {
        $this->canonical_url = $canonical_url;
        $this->description = $description;
        $this->title = $title;
        $this->content = $content;
        $this->current_year = date("Y");
    }

    /**
     * Request template to be presented to the user
     *
     * @access public
     * @author Christian Cleberg <hello@cmc.pub>
     */
    public function render(): void
    {
        include_once 'src/View/BaseTemplate.php';
    }
}