EnvBag::__construct()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 0
1
<?php
2
/**
3
 * @license MIT
4
 */
5
namespace Pivasic\Bundle\Common\Bag;
6
7
/**
8
 * Class EnvBag
9
 * @package Pivasic\Bundle\Common\Bag
10
 */
11
class EnvBag extends ValueBag
12
{
13
    public function __construct()
14
    {
15
        $env = filter_input_array(INPUT_ENV);
16
        if (!is_array($env)) {
17
            $env = [];
18
        }
19
        parent::__construct($env);
20
    }
21
}