Completed
Pull Request — master (#202)
by personal
03:02
created

ExtensionsConfiguration   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getExtensions() 0 4 1
A setExtensions() 0 5 1
1
<?php
2
3
/*
4
 * (c) Jean-Fran�ois L�pine <https://twitter.com/Halleck45>
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
namespace Hal\Application\Config;
11
12
/**
13
 * Extensions configuration
14
 *
15
 * @author Jean-François Lépine <https://twitter.com/Halleck45>
16
 */
17
class ExtensionsConfiguration
18
{
19
    /**
20
     * @var array
21
     */
22
    private $extensions = array();
23
24
25
    /**
26
     * Constructor
27
     *
28
     * @param array $datas
29
     */
30
    public function __construct(array $datas = array())
31
    {
32
        $this->extensions = $datas;
33
    }
34
35
    /**
36
     * @return array
37
     */
38
    public function getExtensions()
39
    {
40
        return $this->extensions;
41
    }
42
43
    /**
44
     * @param array $extensions
45
     * @return ExtensionsConfiguration
46
     */
47
    public function setExtensions($extensions)
48
    {
49
        $this->extensions = $extensions;
50
        return $this;
51
    }
52
}