@@ -326,6 +326,9 @@ |
||
326 | 326 | $this->assertEquals(array(true), $this->exporter->toArray(true)); |
327 | 327 | } |
328 | 328 | |
329 | + /** |
|
330 | + * @param string $string |
|
331 | + */ |
|
329 | 332 | private function trimNewline($string) |
330 | 333 | { |
331 | 334 | return preg_replace('/[ ]*\n/', "\n", $string); |
@@ -50,11 +50,17 @@ discard block |
||
50 | 50 | $this->parent = $parent; |
51 | 51 | } |
52 | 52 | |
53 | + /** |
|
54 | + * @param string $key |
|
55 | + */ |
|
53 | 56 | public function setAttribute($key, $value) |
54 | 57 | { |
55 | 58 | $this->attributes[$key] = $value; |
56 | 59 | } |
57 | 60 | |
61 | + /** |
|
62 | + * @param string $key |
|
63 | + */ |
|
58 | 64 | public function getAttribute($key, $default = null) |
59 | 65 | { |
60 | 66 | return isset($this->attributes[$key]) ? $this->attributes[$key] : $default; |
@@ -123,7 +129,7 @@ discard block |
||
123 | 129 | /** |
124 | 130 | * Adds an equivalent value. |
125 | 131 | * |
126 | - * @param mixed $originalValue |
|
132 | + * @param null|boolean $originalValue |
|
127 | 133 | * @param mixed $equivalentValue |
128 | 134 | */ |
129 | 135 | public function addEquivalentValue($originalValue, $equivalentValue) |
@@ -37,6 +37,7 @@ |
||
37 | 37 | |
38 | 38 | /** |
39 | 39 | * {@inheritdoc} |
40 | + * @param string $name |
|
40 | 41 | */ |
41 | 42 | public function __construct($name, NodeParentInterface $parent = null) |
42 | 43 | { |
@@ -23,7 +23,7 @@ |
||
23 | 23 | private $values; |
24 | 24 | |
25 | 25 | /** |
26 | - * @param array $values |
|
26 | + * @param string[] $values |
|
27 | 27 | * |
28 | 28 | * @return EnumNodeDefinition|$this |
29 | 29 | */ |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | /** |
113 | 113 | * Tests if the value is in an array. |
114 | 114 | * |
115 | - * @param array $array |
|
115 | + * @param string[] $array |
|
116 | 116 | * |
117 | 117 | * @return ExprBuilder |
118 | 118 | */ |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | /** |
127 | 127 | * Tests if the value is not in an array. |
128 | 128 | * |
129 | - * @param array $array |
|
129 | + * @param string[] $array |
|
130 | 130 | * |
131 | 131 | * @return ExprBuilder |
132 | 132 | */ |
@@ -26,6 +26,9 @@ |
||
26 | 26 | { |
27 | 27 | private $reference; |
28 | 28 | |
29 | + /** |
|
30 | + * @param string $namespace |
|
31 | + */ |
|
29 | 32 | public function dump(ConfigurationInterface $configuration, $namespace = null) |
30 | 33 | { |
31 | 34 | return $this->dumpNode($configuration->getConfigTreeBuilder()->buildTree(), $namespace); |
@@ -173,6 +173,9 @@ |
||
173 | 173 | $this->reference .= sprintf($format, $text)."\n"; |
174 | 174 | } |
175 | 175 | |
176 | + /** |
|
177 | + * @param integer $depth |
|
178 | + */ |
|
176 | 179 | private function writeArray(array $array, $depth) |
177 | 180 | { |
178 | 181 | $isIndexed = array_values($array) === $array; |
@@ -67,7 +67,7 @@ |
||
67 | 67 | /** |
68 | 68 | * Imports a resource. |
69 | 69 | * |
70 | - * @param mixed $resource A Resource |
|
70 | + * @param string $resource A Resource |
|
71 | 71 | * @param string|null $type The resource type or null if unknown |
72 | 72 | * @param bool $ignoreErrors Whether to ignore import errors or not |
73 | 73 | * @param string|null $sourceResource The original resource importing the new resource |
@@ -197,6 +197,10 @@ |
||
197 | 197 | ); |
198 | 198 | } |
199 | 199 | |
200 | + /** |
|
201 | + * @param ArrayNodeDefinition $object |
|
202 | + * @param string $field |
|
203 | + */ |
|
200 | 204 | protected function getField($object, $field) |
201 | 205 | { |
202 | 206 | $reflection = new \ReflectionProperty($object, $field); |