@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | |
199 | 199 | /** |
200 | 200 | * @param ArrayCollection $methods |
201 | - * @return InterfaceManager |
|
201 | + * @return ClassManager |
|
202 | 202 | */ |
203 | 203 | public function setMethods(ArrayCollection $methods) |
204 | 204 | { |
@@ -270,6 +270,7 @@ discard block |
||
270 | 270 | |
271 | 271 | /** |
272 | 272 | * @param string |
273 | + * @param string $comment |
|
273 | 274 | * @return ClassManager |
274 | 275 | */ |
275 | 276 | public function setComment($comment) |
@@ -410,7 +411,7 @@ discard block |
||
410 | 411 | /** |
411 | 412 | * Return set of tags used in template |
412 | 413 | * |
413 | - * @return array |
|
414 | + * @return string[] |
|
414 | 415 | */ |
415 | 416 | public function getTemplateTags() |
416 | 417 | { |
@@ -461,7 +462,7 @@ discard block |
||
461 | 462 | |
462 | 463 | /** |
463 | 464 | * @param string $classManagerTemplatePath |
464 | - * @return this |
|
465 | + * @return ClassManager |
|
465 | 466 | */ |
466 | 467 | public function setClassManagerTemplatePath($classManagerTemplatePath) |
467 | 468 | { |
@@ -471,7 +472,7 @@ discard block |
||
471 | 472 | |
472 | 473 | /** |
473 | 474 | * @param string $classConstructorManagerTemplatePath |
474 | - * @return this |
|
475 | + * @return ClassManager |
|
475 | 476 | */ |
476 | 477 | public function setClassConstructorManagerTemplatePath($classConstructorManagerTemplatePath) |
477 | 478 | { |
@@ -481,7 +482,7 @@ discard block |
||
481 | 482 | |
482 | 483 | /** |
483 | 484 | * @param string $interfaceManagerTemplatePath |
484 | - * @return this |
|
485 | + * @return ClassManager |
|
485 | 486 | */ |
486 | 487 | public function setInterfaceManagerTemplatePath($interfaceManagerTemplatePath) |
487 | 488 | { |
@@ -491,7 +492,7 @@ discard block |
||
491 | 492 | |
492 | 493 | /** |
493 | 494 | * @param string $testClassManagerTemplatePath |
494 | - * @return this |
|
495 | + * @return ClassManager |
|
495 | 496 | */ |
496 | 497 | public function setTestClassManagerTemplatePath($testClassManagerTemplatePath) |
497 | 498 | { |
@@ -180,7 +180,7 @@ |
||
180 | 180 | /** |
181 | 181 | * Return set of tags used in template |
182 | 182 | * |
183 | - * @return array |
|
183 | + * @return string[] |
|
184 | 184 | */ |
185 | 185 | public function getTemplateTags() |
186 | 186 | { |
@@ -234,7 +234,6 @@ discard block |
||
234 | 234 | /** |
235 | 235 | * Return prepared property name eg. name_and_surname => nameAndSurname |
236 | 236 | * |
237 | - * @param string $propertyName |
|
238 | 237 | * @return string |
239 | 238 | */ |
240 | 239 | public function getPreparedName() |
@@ -363,7 +362,7 @@ discard block |
||
363 | 362 | /** |
364 | 363 | * Return set of tags used in template |
365 | 364 | * |
366 | - * @return array |
|
365 | + * @return string[] |
|
367 | 366 | */ |
368 | 367 | public function getTemplateTags() |
369 | 368 | { |
@@ -580,6 +580,6 @@ |
||
580 | 580 | throw new Exception("This is not object type"); |
581 | 581 | } |
582 | 582 | |
583 | - return "\\" . $this->getTypeName(); |
|
583 | + return "\\".$this->getTypeName(); |
|
584 | 584 | } |
585 | 585 | } |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | * Set collection of methods |
78 | 78 | * |
79 | 79 | * @param ArrayCollection $methods |
80 | - * @return InterfaceManager |
|
80 | + * @return TestClassManager |
|
81 | 81 | */ |
82 | 82 | public function setMethods(ArrayCollection $methods) |
83 | 83 | { |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | /** |
192 | 192 | * Return set of tags used in template |
193 | 193 | * |
194 | - * @return array |
|
194 | + * @return string[] |
|
195 | 195 | */ |
196 | 196 | public function getTemplateTags() |
197 | 197 | { |
@@ -439,7 +439,7 @@ discard block |
||
439 | 439 | } |
440 | 440 | |
441 | 441 | /** |
442 | - * @param mixed $item |
|
442 | + * @param RenderableInterface $item |
|
443 | 443 | * @return UnrecognizedItemToRenderException |
444 | 444 | */ |
445 | 445 | protected function getExceptionUnrecognizedItem($item) |
@@ -508,7 +508,7 @@ discard block |
||
508 | 508 | } |
509 | 509 | |
510 | 510 | /** |
511 | - * @param \ArrayCollection $collection |
|
511 | + * @param ArrayCollection $collection |
|
512 | 512 | * @return string |
513 | 513 | */ |
514 | 514 | protected function prepareMultilineCommentForCollection(ArrayCollection $collection) |
@@ -541,7 +541,7 @@ |
||
541 | 541 | if ($property->isObjectType()) { |
542 | 542 | return $property->getTypeNameAbsoluteIfIsObjectTypeOrThrowException(); |
543 | 543 | } else { |
544 | - return $property->getTypeName(); |
|
544 | + return $property->getTypeName(); |
|
545 | 545 | } |
546 | 546 | } |
547 | 547 | } |
@@ -430,7 +430,7 @@ |
||
430 | 430 | { |
431 | 431 | $parts = Tools::explodeTemplateStringToArray($template); |
432 | 432 | array_walk( |
433 | - $parts, function (&$value) use ($spaces) { |
|
433 | + $parts, function(&$value) use ($spaces) { |
|
434 | 434 | $value = str_pad($value, strlen($value) + (int) $spaces, " ", STR_PAD_LEFT); |
435 | 435 | } |
436 | 436 | ); |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | * - setters and getters for Class and Interface (optional) |
133 | 133 | * - method with prefix is for boolean properties |
134 | 134 | * |
135 | - * @param \HelloWordPl\SimpleEntityGeneratorBundle\Lib\ClassManager $classManager |
|
135 | + * @param ClassManager $classManager |
|
136 | 136 | */ |
137 | 137 | protected function generateAndFillClassMethods(ClassManager $classManager) |
138 | 138 | { |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | * Generate methods for interface |
167 | 167 | * |
168 | 168 | * @param InterfaceManager $interface |
169 | - * @return ArrayCollection |
|
169 | + * @return InterfaceManager |
|
170 | 170 | */ |
171 | 171 | protected function generateAndFillInterfaceMethods(InterfaceManager $interface) |
172 | 172 | { |
@@ -264,7 +264,7 @@ discard block |
||
264 | 264 | } |
265 | 265 | |
266 | 266 | /** |
267 | - * @param mixed $classConfig |
|
267 | + * @param null|ClassConfig $classConfig |
|
268 | 268 | * @return ClassConfig |
269 | 269 | */ |
270 | 270 | private function getDefaultClassConfigIfNeed($classConfig) |
@@ -219,7 +219,7 @@ discard block |
||
219 | 219 | |
220 | 220 | /** |
221 | 221 | * @param ReflectionClass $reflectionClass |
222 | - * @return type |
|
222 | + * @return integer |
|
223 | 223 | */ |
224 | 224 | protected function getNewInitPropertyPosition(ReflectionClass $reflectionClass) |
225 | 225 | { |
@@ -234,7 +234,7 @@ discard block |
||
234 | 234 | |
235 | 235 | /** |
236 | 236 | * @param ReflectionClass $reflectionClass |
237 | - * @return type |
|
237 | + * @return integer |
|
238 | 238 | */ |
239 | 239 | protected function getNewPropertyPosition(ReflectionClass $reflectionClass) |
240 | 240 | { |
@@ -265,7 +265,7 @@ discard block |
||
265 | 265 | } |
266 | 266 | |
267 | 267 | /** |
268 | - * @param mixed $item |
|
268 | + * @param DumpableInterface $item |
|
269 | 269 | * @return UnrecognizedItemToDumpException |
270 | 270 | */ |
271 | 271 | protected function getExceptionUnrecognizedItem($item) |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | * For property "fullName" |
63 | 63 | * |
64 | 64 | * @param string $fullName |
65 | - * @return this |
|
65 | + * @return User |
|
66 | 66 | */ |
67 | 67 | public function setFullName($fullName) |
68 | 68 | { |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | * For property "email" |
85 | 85 | * |
86 | 86 | * @param string $email |
87 | - * @return this |
|
87 | + * @return User |
|
88 | 88 | */ |
89 | 89 | public function setEmail($email) |
90 | 90 | { |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | * For property "active" |
117 | 117 | * |
118 | 118 | * @param boolean $active |
119 | - * @return this |
|
119 | + * @return User |
|
120 | 120 | */ |
121 | 121 | public function setActive($active) |
122 | 122 | { |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | * For property "newPosts" |
139 | 139 | * |
140 | 140 | * @param Doctrine\Common\Collections\ArrayCollection<AppBundle\Entity\Post> $newPosts |
141 | - * @return this |
|
141 | + * @return User |
|
142 | 142 | */ |
143 | 143 | public function setNewPosts(\Doctrine\Common\Collections\ArrayCollection $newPosts) |
144 | 144 | { |
@@ -926,7 +926,7 @@ |
||
926 | 926 | * Prepare correct ClassManager |
927 | 927 | * |
928 | 928 | * @param $newProperties ArrayCollection |
929 | - * @return ClassManager |
|
929 | + * @return DumpableInterface |
|
930 | 930 | */ |
931 | 931 | protected function preapareClassManager() |
932 | 932 | { |