@@ -150,6 +150,7 @@ discard block |
||
150 | 150 | * {@inheritdoc} |
151 | 151 | * |
152 | 152 | * @api |
153 | + * @param boolean $boolean |
|
153 | 154 | */ |
154 | 155 | public function setPublic($boolean) |
155 | 156 | { |
@@ -162,6 +163,7 @@ discard block |
||
162 | 163 | * {@inheritdoc} |
163 | 164 | * |
164 | 165 | * @api |
166 | + * @param boolean $boolean |
|
165 | 167 | */ |
166 | 168 | public function setLazy($boolean) |
167 | 169 | { |
@@ -208,7 +210,7 @@ discard block |
||
208 | 210 | * parent definition, otherwise your arguments will only be appended. |
209 | 211 | * |
210 | 212 | * @param int $index |
211 | - * @param mixed $value |
|
213 | + * @param string $value |
|
212 | 214 | * |
213 | 215 | * @return DefinitionDecorator the current instance |
214 | 216 | * |
@@ -286,7 +286,7 @@ |
||
286 | 286 | * |
287 | 287 | * @param string $id A service id |
288 | 288 | * |
289 | - * @return array An array of aliases |
|
289 | + * @return string An array of aliases |
|
290 | 290 | */ |
291 | 291 | private function getAliases($id) |
292 | 292 | { |
@@ -453,6 +453,9 @@ discard block |
||
453 | 453 | return $calls; |
454 | 454 | } |
455 | 455 | |
456 | + /** |
|
457 | + * @param null|string $id |
|
458 | + */ |
|
456 | 459 | private function addServiceProperties($id, $definition, $variableName = 'instance') |
457 | 460 | { |
458 | 461 | $code = ''; |
@@ -747,6 +750,11 @@ discard block |
||
747 | 750 | EOF; |
748 | 751 | } |
749 | 752 | |
753 | + /** |
|
754 | + * @param string $id |
|
755 | + * @param string $return |
|
756 | + * @param string $instantiation |
|
757 | + */ |
|
750 | 758 | private function addNewInstance($id, Definition $definition, $return, $instantiation) |
751 | 759 | { |
752 | 760 | $class = $this->dumpValue($definition->getClass()); |
@@ -291,6 +291,9 @@ |
||
291 | 291 | return sprintf('%%%s%%', $id); |
292 | 292 | } |
293 | 293 | |
294 | + /** |
|
295 | + * @param string $expression |
|
296 | + */ |
|
294 | 297 | private function getExpressionCall($expression) |
295 | 298 | { |
296 | 299 | return sprintf('@=%s', $expression); |
@@ -79,6 +79,9 @@ |
||
79 | 79 | return $this->sourceKey; |
80 | 80 | } |
81 | 81 | |
82 | + /** |
|
83 | + * @param integer $sourceId |
|
84 | + */ |
|
82 | 85 | public function setSourceId($sourceId) |
83 | 86 | { |
84 | 87 | $this->sourceId = $sourceId; |
@@ -29,7 +29,7 @@ |
||
29 | 29 | /** |
30 | 30 | * Returns the base path for the XSD files. |
31 | 31 | * |
32 | - * @return string The XSD base path |
|
32 | + * @return boolean The XSD base path |
|
33 | 33 | */ |
34 | 34 | public function getXsdValidationBasePath() |
35 | 35 | { |
@@ -33,6 +33,7 @@ discard block |
||
33 | 33 | |
34 | 34 | /** |
35 | 35 | * {@inheritdoc} |
36 | + * @param string $resource |
|
36 | 37 | */ |
37 | 38 | public function load($resource, $type = null) |
38 | 39 | { |
@@ -60,6 +61,7 @@ discard block |
||
60 | 61 | |
61 | 62 | /** |
62 | 63 | * {@inheritdoc} |
64 | + * @param string $resource |
|
63 | 65 | */ |
64 | 66 | public function supports($resource, $type = null) |
65 | 67 | { |
@@ -405,9 +407,9 @@ discard block |
||
405 | 407 | * Get child elements by name. |
406 | 408 | * |
407 | 409 | * @param \DOMNode $node |
408 | - * @param mixed $name |
|
410 | + * @param string $name |
|
409 | 411 | * |
410 | - * @return array |
|
412 | + * @return string |
|
411 | 413 | */ |
412 | 414 | private function getChildren(\DOMNode $node, $name) |
413 | 415 | { |
@@ -35,6 +35,7 @@ discard block |
||
35 | 35 | |
36 | 36 | /** |
37 | 37 | * {@inheritdoc} |
38 | + * @param string $resource |
|
38 | 39 | */ |
39 | 40 | public function load($resource, $type = null) |
40 | 41 | { |
@@ -72,6 +73,7 @@ discard block |
||
72 | 73 | |
73 | 74 | /** |
74 | 75 | * {@inheritdoc} |
76 | + * @param string $resource |
|
75 | 77 | */ |
76 | 78 | public function supports($resource, $type = null) |
77 | 79 | { |
@@ -609,6 +609,10 @@ |
||
609 | 609 | ); |
610 | 610 | } |
611 | 611 | |
612 | + /** |
|
613 | + * @param Container $obj |
|
614 | + * @param string $field |
|
615 | + */ |
|
612 | 616 | protected function getField($obj, $field) |
613 | 617 | { |
614 | 618 | $reflection = new \ReflectionProperty($obj, $field); |