Total Complexity | 4 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
10 | class Options |
||
11 | { |
||
12 | /** |
||
13 | * @var array protected to make use of it in OptionsMock for tests |
||
14 | */ |
||
15 | protected $definition; |
||
16 | |||
17 | /** |
||
18 | * @return Options |
||
19 | */ |
||
20 | 2 | public static function create() |
|
27 | } |
||
28 | |||
29 | 2 | public function __construct(array $definition) |
|
30 | { |
||
31 | 2 | $this->definition = $definition; |
|
32 | 2 | } |
|
33 | |||
34 | /** |
||
35 | * @param string $name |
||
36 | * |
||
37 | * @return null|string |
||
38 | */ |
||
39 | 2 | final public function get($name) |
|
46 | } |
||
47 | } |
||
48 |