Configuration::getName()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 2
eloc 2
nc 2
nop 0
1
<?php
2
3
namespace Hshn\AngularBundle\TemplateCache;
4
5
class Configuration implements ConfigurationInterface
6
{
7
    /**
8
     * @var string
9
     */
10
    private $name;
11
12
    /**
13
     * @var bool
14
     */
15
    private $create;
16
17
    /**
18
     * @var string[]
19
     */
20
    private $targets;
21
22
    /**
23
     * {@inheritdoc}
24
     */
25
    public function setName($name)
26
    {
27
        $this->name = $name;
28
    }
29
30
    /**
31
     * {@inheritdoc}
32
     */
33
    public function getName()
34
    {
35
        return $this->name ?: $this->name;
36
    }
37
38
    /**
39
     * {@inheritdoc}
40
     */
41
    public function setTargets(array $targets)
42
    {
43
        $this->targets = $targets;
44
    }
45
46
    /**
47
     * {@inheritdoc}
48
     */
49
    public function getTargets()
50
    {
51
        return $this->targets;
52
    }
53
54
    /**
55
     * @return boolean
56
     */
57
    public function getCreate()
58
    {
59
        return $this->create;
60
    }
61
62
    /**
63
     * @param boolean $create
64
     */
65
    public function setCreate($create)
66
    {
67
        $this->create = $create;
68
    }
69
}
70