Passed
Pull Request — master (#2)
by David
02:02
created

TwigThemeDescriptor   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 18
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getTemplate() 0 3 1
1
<?php
2
3
4
namespace TheCodingMachine\CMS\Theme;
5
6
7
class TwigThemeDescriptor implements ThemeDescriptorInterface
8
{
9
    /**
10
     * @var string
11
     */
12
    private $template;
13
14
    public function __construct(string $template)
15
    {
16
        $this->template = $template;
17
    }
18
19
    /**
20
     * @return string
21
     */
22
    public function getTemplate(): string
23
    {
24
        return $this->template;
25
    }
26
}
27