Completed
Push — master ( c32796...5fbd22 )
by Daniel
03:30
created

ScalarView::isRaw()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Psi\Component\ContentType\Standard\View;
6
7
use Psi\Component\ContentType\View\ViewInterface;
8
9
class ScalarView implements ViewInterface
10
{
11
    private $template;
12
    private $value;
13
    private $raw;
14
    private $tag;
15
16
    public function __construct(string $template, $value, string $tag = null, bool $raw)
17
    {
18
        $this->template = $template;
19
        $this->value = $value;
20
        $this->tag = $tag;
21
        $this->raw = $raw;
22
    }
23
24
    public function getTemplate(): string
25
    {
26
        return $this->template;
27
    }
28
29
    public function getTag()
30
    {
31
        return $this->tag;
32
    }
33
34
    public function getValue()
35
    {
36
        return $this->value;
37
    }
38
39
    public function isRaw()
40
    {
41
        return $this->raw;
42
    }
43
}
44