TemplateCacheManager::getModules()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Hshn\AngularBundle\TemplateCache;
4
5
class TemplateCacheManager
6
{
7
    /**
8
     * @var ConfigurationInterface[]
9
     */
10
    private $modules;
11
12
    /**
13
     *
14
     */
15
    public function __construct()
16
    {
17
        $this->modules = array();
18
    }
19
20
    /**
21
     * @param string                 $name
22
     * @param ConfigurationInterface $configuration
23
     */
24
    public function addModule($name, ConfigurationInterface $configuration)
25
    {
26
        $this->modules[$name] = $configuration;
27
    }
28
29
    /**
30
     * @return ConfigurationInterface[]
31
     */
32
    public function getModules()
33
    {
34
        return $this->modules;
35
    }
36
}
37