@@ -62,6 +62,7 @@ discard block |
||
| 62 | 62 | |
| 63 | 63 | /** |
| 64 | 64 | * @param string $label |
| 65 | + * @return void |
|
| 65 | 66 | */ |
| 66 | 67 | public function setLabel($label); |
| 67 | 68 | |
@@ -72,7 +73,7 @@ discard block |
||
| 72 | 73 | |
| 73 | 74 | /** |
| 74 | 75 | * @param string $name |
| 75 | - * @param mixed|null $default |
|
| 76 | + * @param boolean $default |
|
| 76 | 77 | * |
| 77 | 78 | * @return mixed |
| 78 | 79 | */ |
@@ -80,12 +81,14 @@ discard block |
||
| 80 | 81 | |
| 81 | 82 | /** |
| 82 | 83 | * @param string $name |
| 83 | - * @param mixed $value |
|
| 84 | + * @param boolean $value |
|
| 85 | + * @return void |
|
| 84 | 86 | */ |
| 85 | 87 | public function setOption($name, $value); |
| 86 | 88 | |
| 87 | 89 | /** |
| 88 | 90 | * @param string $name |
| 91 | + * @return void |
|
| 89 | 92 | */ |
| 90 | 93 | public function initialize($name, array $options = []); |
| 91 | 94 | |
@@ -129,6 +132,7 @@ discard block |
||
| 129 | 132 | * |
| 130 | 133 | * @param string $name |
| 131 | 134 | * @param mixed $value |
| 135 | + * @return void |
|
| 132 | 136 | */ |
| 133 | 137 | public function setFieldOption($name, $value); |
| 134 | 138 | |
@@ -155,6 +159,7 @@ discard block |
||
| 155 | 159 | * Set the condition to use with the left side of the query : OR or AND. |
| 156 | 160 | * |
| 157 | 161 | * @param string $condition |
| 162 | + * @return void |
|
| 158 | 163 | */ |
| 159 | 164 | public function setCondition($condition); |
| 160 | 165 | |
@@ -65,6 +65,7 @@ |
||
| 65 | 65 | * @param string|null $property |
| 66 | 66 | * @param mixed|null $query |
| 67 | 67 | * @param array $choices |
| 68 | + * @param PropertyAccessorInterface $propertyAccessor |
|
| 68 | 69 | */ |
| 69 | 70 | public function __construct( |
| 70 | 71 | ModelManagerInterface $modelManager, |
@@ -586,6 +586,10 @@ |
||
| 586 | 586 | $this->admin->setShowBuilder(new ShowBuilder()); |
| 587 | 587 | } |
| 588 | 588 | |
| 589 | + /** |
|
| 590 | + * @param string $name |
|
| 591 | + * @param string $label |
|
| 592 | + */ |
|
| 589 | 593 | private function getFieldDescriptionMock(?string $name = null, ?string $label = null): BaseFieldDescription |
| 590 | 594 | { |
| 591 | 595 | $fieldDescription = $this->getMockForAbstractClass(BaseFieldDescription::class); |
@@ -44,6 +44,8 @@ |
||
| 44 | 44 | |
| 45 | 45 | /** |
| 46 | 46 | * @param FieldDescriptionInterface|string $name |
| 47 | + * @param string $type |
|
| 48 | + * @param string $fieldType |
|
| 47 | 49 | * |
| 48 | 50 | * @throws \LogicException |
| 49 | 51 | */ |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | /** |
| 183 | 183 | * render a view element. |
| 184 | 184 | * |
| 185 | - * @param object $object |
|
| 185 | + * @param \stdClass $object |
|
| 186 | 186 | * |
| 187 | 187 | * @return string |
| 188 | 188 | */ |
@@ -221,8 +221,8 @@ discard block |
||
| 221 | 221 | /** |
| 222 | 222 | * render a compared view element. |
| 223 | 223 | * |
| 224 | - * @param mixed $baseObject |
|
| 225 | - * @param mixed $compareObject |
|
| 224 | + * @param \stdClass $baseObject |
|
| 225 | + * @param \stdClass $compareObject |
|
| 226 | 226 | * |
| 227 | 227 | * @return string |
| 228 | 228 | */ |
@@ -343,7 +343,8 @@ discard block |
||
| 343 | 343 | /** |
| 344 | 344 | * Get the identifiers as a string that is safe to use in a url. |
| 345 | 345 | * |
| 346 | - * @param object $model |
|
| 346 | + * @param \stdClass $model |
|
| 347 | + * @param AdminInterface $admin |
|
| 347 | 348 | * |
| 348 | 349 | * @return string string representation of the id that is safe to use in a url |
| 349 | 350 | */ |
@@ -365,7 +366,7 @@ discard block |
||
| 365 | 366 | } |
| 366 | 367 | |
| 367 | 368 | /** |
| 368 | - * @return string|bool |
|
| 369 | + * @return string|false |
|
| 369 | 370 | */ |
| 370 | 371 | public function getXEditableType($type) |
| 371 | 372 | { |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | /** |
| 46 | - * @param FieldDescriptionInterface|string $name |
|
| 46 | + * @param \Sonata\AdminBundle\Admin\BaseFieldDescription $name |
|
| 47 | 47 | */ |
| 48 | 48 | public function addIdentifier($name, ?string $type = null, array $fieldDescriptionOptions = []): self |
| 49 | 49 | { |
@@ -414,6 +414,10 @@ |
||
| 414 | 414 | ); |
| 415 | 415 | } |
| 416 | 416 | |
| 417 | + /** |
|
| 418 | + * @param string $name |
|
| 419 | + * @param string $label |
|
| 420 | + */ |
|
| 417 | 421 | private function getFieldDescriptionMock(?string $name = null, ?string $label = null): BaseFieldDescription |
| 418 | 422 | { |
| 419 | 423 | $fieldDescription = $this->getMockForAbstractClass(BaseFieldDescription::class); |
@@ -182,6 +182,9 @@ |
||
| 182 | 182 | return $acls; |
| 183 | 183 | } |
| 184 | 184 | |
| 185 | + /** |
|
| 186 | + * @param UserSecurityIdentity $securityIdentity |
|
| 187 | + */ |
|
| 185 | 188 | public function addObjectOwner(AclInterface $acl, ?UserSecurityIdentity $securityIdentity = null): void |
| 186 | 189 | { |
| 187 | 190 | if (!$acl instanceof MutableAclInterface) { |
@@ -1236,6 +1236,9 @@ discard block |
||
| 1236 | 1236 | return $this->baseControllerName; |
| 1237 | 1237 | } |
| 1238 | 1238 | |
| 1239 | + /** |
|
| 1240 | + * @param string $label |
|
| 1241 | + */ |
|
| 1239 | 1242 | public function setLabel(?string $label): void |
| 1240 | 1243 | { |
| 1241 | 1244 | $this->label = $label; |
@@ -1877,6 +1880,9 @@ discard block |
||
| 1877 | 1880 | return $this->managerType; |
| 1878 | 1881 | } |
| 1879 | 1882 | |
| 1883 | + /** |
|
| 1884 | + * @param string $type |
|
| 1885 | + */ |
|
| 1880 | 1886 | public function setManagerType(?string $type): void |
| 1881 | 1887 | { |
| 1882 | 1888 | $this->managerType = $type; |
@@ -2311,6 +2317,7 @@ discard block |
||
| 2311 | 2317 | |
| 2312 | 2318 | /** |
| 2313 | 2319 | * {@inheritdoc} |
| 2320 | + * @param boolean $isShown |
|
| 2314 | 2321 | */ |
| 2315 | 2322 | final public function showMosaicButton($isShown): void |
| 2316 | 2323 | { |