NewCommentEmailViewModel::getTitle()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the Explicit Architecture POC,
7
 * which is created on top of the Symfony Demo application.
8
 *
9
 * (c) Herberto Graça <[email protected]>
10
 *
11
 * For the full copyright and license information, please view the LICENSE
12
 * file that was distributed with this source code.
13
 */
14
15
namespace Acme\App\Core\Component\Blog\Application\Notification\NewComment\Email;
16
17
use Acme\App\Core\Port\TemplateEngine\EmailTemplateViewModelInterface;
18
19
final class NewCommentEmailViewModel implements EmailTemplateViewModelInterface
20
{
21
    /**
22
     * @var string
23
     */
24
    private $subject;
25
26
    /**
27
     * @var string
28
     */
29
    private $title;
30
31
    /**
32
     * @var string
33
     */
34
    private $link;
35
36
    public function __construct(string $subject, string $title, string $link)
37
    {
38
        $this->subject = $subject;
39
        $this->title = $title;
40
        $this->link = $link;
41
    }
42
43
    public function getSubject(): string
44
    {
45
        return $this->subject;
46
    }
47
48
    public function getTitle(): string
49
    {
50
        return $this->title;
51
    }
52
53
    public function getLink(): string
54
    {
55
        return $this->link;
56
    }
57
}
58