@@ -1000,7 +1000,7 @@ |
||
| 1000 | 1000 | * |
| 1001 | 1001 | * @param mixed $value A value |
| 1002 | 1002 | * |
| 1003 | - * @return mixed The same value with all service references replaced by |
|
| 1003 | + * @return callable|null The same value with all service references replaced by |
|
| 1004 | 1004 | * the real service instances and all expressions evaluated |
| 1005 | 1005 | */ |
| 1006 | 1006 | public function resolveServices($value) |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | /** |
| 109 | 109 | * Gets the factory class. |
| 110 | 110 | * |
| 111 | - * @return string|null The factory class name |
|
| 111 | + * @return string The factory class name |
|
| 112 | 112 | * |
| 113 | 113 | * @api |
| 114 | 114 | * @deprecated since version 2.6, to be removed in 3.0. |
@@ -179,7 +179,7 @@ discard block |
||
| 179 | 179 | /** |
| 180 | 180 | * Gets the factory method. |
| 181 | 181 | * |
| 182 | - * @return string|null The factory method name |
|
| 182 | + * @return string The factory method name |
|
| 183 | 183 | * |
| 184 | 184 | * @api |
| 185 | 185 | * @deprecated since version 2.6, to be removed in 3.0. |
@@ -215,7 +215,7 @@ discard block |
||
| 215 | 215 | /** |
| 216 | 216 | * Gets the factory service id. |
| 217 | 217 | * |
| 218 | - * @return string|null The factory service id |
|
| 218 | + * @return string The factory service id |
|
| 219 | 219 | * |
| 220 | 220 | * @api |
| 221 | 221 | * @deprecated since version 2.6, to be removed in 3.0. |
@@ -588,7 +588,7 @@ discard block |
||
| 588 | 588 | /** |
| 589 | 589 | * Gets the file to require before creating the service. |
| 590 | 590 | * |
| 591 | - * @return string|null The full pathname to include |
|
| 591 | + * @return string The full pathname to include |
|
| 592 | 592 | * |
| 593 | 593 | * @api |
| 594 | 594 | */ |
@@ -796,7 +796,7 @@ discard block |
||
| 796 | 796 | /** |
| 797 | 797 | * Gets the configurator to call after the service is fully initialized. |
| 798 | 798 | * |
| 799 | - * @return callable|null The PHP callable to call |
|
| 799 | + * @return callable The PHP callable to call |
|
| 800 | 800 | * |
| 801 | 801 | * @api |
| 802 | 802 | */ |
@@ -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 | { |