1 | <?php |
||
13 | class Configuration implements ConfigurationInterface, \ArrayAccess |
||
14 | { |
||
15 | /** |
||
16 | * @var array |
||
17 | */ |
||
18 | protected $configuration; |
||
19 | |||
20 | /** |
||
21 | * Create a configuration from array. |
||
22 | * |
||
23 | * @param array $configuration |
||
24 | * @param array $analyzersConfiguration |
||
25 | */ |
||
26 | 732 | public function __construct(array $configuration = [], $analyzersConfiguration = []) |
|
37 | |||
38 | /** |
||
39 | * Generates the configuration tree. |
||
40 | * |
||
41 | * @param array $analyzersConfiguration |
||
42 | * |
||
43 | * @return TreeBuilder |
||
44 | */ |
||
45 | 732 | public function getConfigTreeBuilder($analyzersConfiguration = []) |
|
79 | |||
80 | /** |
||
81 | * Sets a configuration setting. |
||
82 | * |
||
83 | * @param string $key |
||
84 | * @param string $value |
||
85 | */ |
||
86 | public function setValue($key, $value) |
||
90 | |||
91 | /** |
||
92 | * Checks if a configuration setting is set. |
||
93 | * |
||
94 | * @param string $key |
||
95 | * @return bool |
||
96 | */ |
||
97 | 19 | public function valueIsTrue($key) |
|
101 | |||
102 | /** |
||
103 | * {@inheritdoc} |
||
104 | */ |
||
105 | public function offsetExists($offset) |
||
109 | |||
110 | /** |
||
111 | * {@inheritdoc} |
||
112 | */ |
||
113 | 1 | public function offsetGet($offset) |
|
117 | |||
118 | /** |
||
119 | * {@inheritdoc} |
||
120 | */ |
||
121 | public function offsetSet($offset, $value) |
||
125 | |||
126 | /** |
||
127 | * {@inheritdoc} |
||
128 | */ |
||
129 | public function offsetUnset($offset) |
||
133 | } |
||
134 |
Very long variable names usually make code harder to read. It is therefore recommended not to make variable names too verbose.