Completed
Push — master ( 7ec665...146f6b )
by personal
11:02 queued 08:23
created

ExtensionsConfiguration::getExtensions()   A

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
/*
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
}