@@ -7,6 +7,9 @@ discard block |
||
| 7 | 7 | |
| 8 | 8 | class CommentAdmin extends AbstractAdmin |
| 9 | 9 | { |
| 10 | + /** |
|
| 11 | + * @param string $label |
|
| 12 | + */ |
|
| 10 | 13 | public function setClassnameLabel($label) |
| 11 | 14 | { |
| 12 | 15 | $this->classnameLabel = $label; |
@@ -17,6 +20,9 @@ discard block |
||
| 17 | 20 | $collection->remove('edit'); |
| 18 | 21 | } |
| 19 | 22 | |
| 23 | + /** |
|
| 24 | + * @param string $associationMapping |
|
| 25 | + */ |
|
| 20 | 26 | public function setParentAssociationMapping($associationMapping) |
| 21 | 27 | { |
| 22 | 28 | $this->parentAssociationMapping = $associationMapping; |
@@ -2,9 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Sonata\AdminBundle\Tests\Fixtures\Admin; |
| 4 | 4 | |
| 5 | -use Sonata\AdminBundle\Admin\AbstractAdmin; |
|
| 6 | -use Sonata\AdminBundle\Route\RouteCollection; |
|
| 7 | - |
|
| 8 | 5 | class CommentWithCustomRouteAdmin extends CommentAdmin |
| 9 | 6 | { |
| 10 | 7 | protected $baseRoutePattern = 'comment-custom'; |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | /** |
| 123 | 123 | * render a list element from the FieldDescription. |
| 124 | 124 | * |
| 125 | - * @param mixed $object |
|
| 125 | + * @param \stdClass $object |
|
| 126 | 126 | * @param FieldDescriptionInterface $fieldDescription |
| 127 | 127 | * @param array $params |
| 128 | 128 | * |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | * render a view element. |
| 153 | 153 | * |
| 154 | 154 | * @param FieldDescriptionInterface $fieldDescription |
| 155 | - * @param mixed $object |
|
| 155 | + * @param \stdClass $object |
|
| 156 | 156 | * |
| 157 | 157 | * @return string |
| 158 | 158 | */ |
@@ -291,7 +291,7 @@ discard block |
||
| 291 | 291 | /** |
| 292 | 292 | * Get the identifiers as a string that is safe to use in a url. |
| 293 | 293 | * |
| 294 | - * @param object $model |
|
| 294 | + * @param \stdClass $model |
|
| 295 | 295 | * @param AdminInterface $admin |
| 296 | 296 | * |
| 297 | 297 | * @return string string representation of the id that is safe to use in a url |
@@ -316,7 +316,7 @@ discard block |
||
| 316 | 316 | /** |
| 317 | 317 | * @param $type |
| 318 | 318 | * |
| 319 | - * @return string|bool |
|
| 319 | + * @return string|false |
|
| 320 | 320 | */ |
| 321 | 321 | public function getXEditableType($type) |
| 322 | 322 | { |
@@ -447,7 +447,7 @@ discard block |
||
| 447 | 447 | * @param FieldDescriptionInterface $fieldDescription |
| 448 | 448 | * @param string $defaultTemplate |
| 449 | 449 | * |
| 450 | - * @return \Twig_TemplateInterface |
|
| 450 | + * @return \Twig_Template |
|
| 451 | 451 | */ |
| 452 | 452 | private function getTemplate( |
| 453 | 453 | FieldDescriptionInterface $fieldDescription, |