TemplateCacheManager   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 3
c 2
b 0
f 1
lcom 1
cbo 0
dl 0
loc 32
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A addModule() 0 4 1
A getModules() 0 4 1
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