ChainConfigurator   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
c 0
b 0
f 0
lcom 1
cbo 0
dl 0
loc 22
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A configure() 0 7 2
1
<?php
2
/*
3
 * This file is part of the PommProject/PommBundle package.
4
 *
5
 * (c) 2014 - 2016 Grégoire HUBERT <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
namespace PommProject\PommBundle\Model;
11
12
use PommProject\Foundation\Pomm;
13
use PommProject\Foundation\Session\Session;
14
15
/**
16
 * Configurator
17
 *
18
 * Pooler configurator.
19
 *
20
 * @package   PommBundle
21
 * @copyright 2014 - 2016 Grégoire HUBERT
22
 * @author    Miha Vrhovnik
23
 * @license   X11 {@link http://opensource.org/licenses/mit-license.php}
24
 */
25
class ChainConfigurator
26
{
27
    private $configurators;
28
29
    public function __construct(array $configurators)
30
    {
31
        $this->configurators = $configurators;
32
    }
33
34
    /**
35
     * @param Pomm $pomm
36
     *
37
     * @return null
38
     */
39
    public function configure(Pomm $pomm)
40
    {
41
42
        foreach ($this->configurators as $configurator) {
43
            $configurator->configure($pomm);
44
        }
45
    }
46
}
47