@@ -309,7 +309,7 @@ discard block |
||
| 309 | 309 | /** |
| 310 | 310 | * Get template. |
| 311 | 311 | * |
| 312 | - * @return Template |
|
| 312 | + * @return string |
|
| 313 | 313 | */ |
| 314 | 314 | public function getTemplate() |
| 315 | 315 | { |
@@ -368,7 +368,7 @@ discard block |
||
| 368 | 368 | /** |
| 369 | 369 | * Has children. |
| 370 | 370 | * |
| 371 | - * @return bool |
|
| 371 | + * @return integer |
|
| 372 | 372 | */ |
| 373 | 373 | public function hasChildren() |
| 374 | 374 | { |
@@ -604,7 +604,7 @@ discard block |
||
| 604 | 604 | /** |
| 605 | 605 | * Get i18n. |
| 606 | 606 | * |
| 607 | - * @return BaseI18n |
|
| 607 | + * @return string |
|
| 608 | 608 | */ |
| 609 | 609 | public function getI18n() |
| 610 | 610 | { |
@@ -614,7 +614,7 @@ discard block |
||
| 614 | 614 | /** |
| 615 | 615 | * Set i18n. |
| 616 | 616 | * |
| 617 | - * @param string $i18n |
|
| 617 | + * @param BaseI18n $i18n |
|
| 618 | 618 | * |
| 619 | 619 | * @return $this |
| 620 | 620 | */ |
@@ -657,7 +657,7 @@ discard block |
||
| 657 | 657 | /** |
| 658 | 658 | * Add widget. |
| 659 | 659 | * |
| 660 | - * @param Widget $widget |
|
| 660 | + * @param Widget $widgetMap |
|
| 661 | 661 | */ |
| 662 | 662 | public function addWidgetMap(WidgetMap $widgetMap) |
| 663 | 663 | { |
@@ -834,7 +834,7 @@ discard block |
||
| 834 | 834 | * @deprecated |
| 835 | 835 | * Get widgets. |
| 836 | 836 | * |
| 837 | - * @return Widget[] |
|
| 837 | + * @return string |
|
| 838 | 838 | */ |
| 839 | 839 | public function getWidgets() |
| 840 | 840 | { |
@@ -115,6 +115,8 @@ discard block |
||
| 115 | 115 | * @param View $view |
| 116 | 116 | * @param string $businessEntityId |
| 117 | 117 | * @param string $namespace |
| 118 | + * @param integer $position |
|
| 119 | + * @param string $slot |
|
| 118 | 120 | * |
| 119 | 121 | * @return array |
| 120 | 122 | */ |
@@ -268,6 +270,7 @@ discard block |
||
| 268 | 270 | * @param View $view |
| 269 | 271 | * @param string $businessEntityId |
| 270 | 272 | * @param int $position |
| 273 | + * @param string $slotId |
|
| 271 | 274 | * |
| 272 | 275 | * @throws \Exception |
| 273 | 276 | * |
@@ -83,7 +83,6 @@ discard block |
||
| 83 | 83 | * @param string $type The type of the widget we edit |
| 84 | 84 | * @param int $viewReference The view reference where attach the widget |
| 85 | 85 | * @param string $slot The slot where attach the widget |
| 86 | - * @param int $positionReference The positionReference in the widgetMap |
|
| 87 | 86 | * |
| 88 | 87 | * @return JsonResponse |
| 89 | 88 | * |
@@ -129,7 +128,6 @@ discard block |
||
| 129 | 128 | * @param string $type The type of the widget we edit |
| 130 | 129 | * @param int $viewReference The view reference where attach the widget |
| 131 | 130 | * @param string $slot The slot where attach the widget |
| 132 | - * @param int $positionReference Position of the widget |
|
| 133 | 131 | * @param string $businessEntityId The BusinessEntity::id (can be null if the submitted form is in static mode) |
| 134 | 132 | * |
| 135 | 133 | * @return JsonResponse |
@@ -369,7 +369,7 @@ discard block |
||
| 369 | 369 | /** |
| 370 | 370 | * Add widget. |
| 371 | 371 | * |
| 372 | - * @param Widget $widget |
|
| 372 | + * @param Widget $widgetMap |
|
| 373 | 373 | */ |
| 374 | 374 | public function addWidgetMap(WidgetMap $widgetMap) |
| 375 | 375 | { |
@@ -443,7 +443,7 @@ discard block |
||
| 443 | 443 | * @deprecated |
| 444 | 444 | * Get view. |
| 445 | 445 | * |
| 446 | - * @return View |
|
| 446 | + * @return string |
|
| 447 | 447 | */ |
| 448 | 448 | public function getView() |
| 449 | 449 | { |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | * @param string $type |
| 54 | 54 | * @param \Victoire\Bundle\CoreBundle\Entity\View $view |
| 55 | 55 | * @param string $slot |
| 56 | - * @param $mode |
|
| 56 | + * @param string $mode |
|
| 57 | 57 | * |
| 58 | 58 | * @return Widget $widget |
| 59 | 59 | */ |
@@ -98,7 +98,6 @@ discard block |
||
| 98 | 98 | * @param string $slotId |
| 99 | 99 | * @param View $view |
| 100 | 100 | * @param string $entity |
| 101 | - * @param int $positionReference |
|
| 102 | 101 | * @param string $type |
| 103 | 102 | * |
| 104 | 103 | * @throws \Exception |
@@ -313,6 +312,9 @@ discard block |
||
| 313 | 312 | return $widgetCopy; |
| 314 | 313 | } |
| 315 | 314 | |
| 315 | + /** |
|
| 316 | + * @param Widget $entity |
|
| 317 | + */ |
|
| 316 | 318 | public function cloneEntity($entity) |
| 317 | 319 | { |
| 318 | 320 | $entityCopy = clone $entity; |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | * |
| 75 | 75 | * @param WidgetMap $widgetMap |
| 76 | 76 | * |
| 77 | - * @return this |
|
| 77 | + * @return Slot |
|
| 78 | 78 | */ |
| 79 | 79 | public function updateWidgetMap($widgetMap) |
| 80 | 80 | { |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | } |
| 119 | 119 | |
| 120 | 120 | /** |
| 121 | - * @return null |
|
| 121 | + * @return string |
|
| 122 | 122 | */ |
| 123 | 123 | public function isAsynchronous() |
| 124 | 124 | { |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | } |
| 127 | 127 | |
| 128 | 128 | /** |
| 129 | - * @param null $asynchronous |
|
| 129 | + * @param boolean|string $asynchronous |
|
| 130 | 130 | */ |
| 131 | 131 | public function setAsynchronous($asynchronous) |
| 132 | 132 | { |
@@ -291,7 +291,7 @@ discard block |
||
| 291 | 291 | } |
| 292 | 292 | |
| 293 | 293 | /** |
| 294 | - * @return mixed |
|
| 294 | + * @return Collection |
|
| 295 | 295 | */ |
| 296 | 296 | public function getChildrenRaw() |
| 297 | 297 | { |
@@ -382,7 +382,7 @@ discard block |
||
| 382 | 382 | } |
| 383 | 383 | |
| 384 | 384 | /** |
| 385 | - * @param mixed $parent |
|
| 385 | + * @param null|WidgetMap $parent |
|
| 386 | 386 | */ |
| 387 | 387 | public function setParent(WidgetMap $parent = null) |
| 388 | 388 | { |
@@ -412,7 +412,7 @@ discard block |
||
| 412 | 412 | } |
| 413 | 413 | |
| 414 | 414 | /** |
| 415 | - * @return mixed |
|
| 415 | + * @return ArrayCollection |
|
| 416 | 416 | */ |
| 417 | 417 | public function getSubstitutes() |
| 418 | 418 | { |
@@ -19,6 +19,9 @@ |
||
| 19 | 19 | $this->builder = $builder; |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | + /** |
|
| 23 | + * @param string $slotId |
|
| 24 | + */ |
|
| 22 | 25 | public function insert(Widget $widget, View $view, $slotId, $position, $widgetReference) |
| 23 | 26 | { |
| 24 | 27 | $parent = null; |