Passed
Pull Request — master (#300)
by Arnaud
15:59
created

Template   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
c 0
b 0
f 0
dl 0
loc 19
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getTemplate() 0 3 1
A __construct() 0 4 1
A getBase() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace LAG\AdminBundle\View\Template;
6
7
/**
8
 * This is a value object to encapsulate Twig template values.
9
 */
10
class Template
11
{
12
    private string $template;
13
    private string $base;
14
15
    public function __construct(string $template, string $base)
16
    {
17
        $this->template = $template;
18
        $this->base = $base;
19
    }
20
21
    public function getTemplate(): string
22
    {
23
        return $this->template;
24
    }
25
26
    public function getBase(): string
27
    {
28
        return $this->base;
29
    }
30
}
31