@@ -14,13 +14,18 @@ |
||
14 | 14 | { |
15 | 15 | /** |
16 | 16 | * @param FormBuilderInterface $builder The form builder |
17 | + * @return void |
|
17 | 18 | */ |
18 | 19 | public function buildForm(FormBuilderInterface $builder); |
19 | 20 | |
21 | + /** |
|
22 | + * @return void |
|
23 | + */ |
|
20 | 24 | public function bindRequest(Request $request); |
21 | 25 | |
22 | 26 | /** |
23 | 27 | * @param EntityManager $em The entity manager |
28 | + * @return void |
|
24 | 29 | */ |
25 | 30 | public function persist(EntityManager $em); |
26 | 31 |
@@ -23,16 +23,19 @@ discard block |
||
23 | 23 | |
24 | 24 | /** |
25 | 25 | * Configure the fields you can filter on |
26 | + * @return void |
|
26 | 27 | */ |
27 | 28 | public function buildFilters(); |
28 | 29 | |
29 | 30 | /** |
30 | 31 | * Configure the actions for each item |
32 | + * @return void |
|
31 | 33 | */ |
32 | 34 | public function buildItemActions(); |
33 | 35 | |
34 | 36 | /** |
35 | 37 | * Configure the actions that can be executed on the whole list |
38 | + * @return void |
|
36 | 39 | */ |
37 | 40 | public function buildListActions(); |
38 | 41 | |
@@ -100,6 +103,9 @@ discard block |
||
100 | 103 | */ |
101 | 104 | public function canEdit($item); |
102 | 105 | |
106 | + /** |
|
107 | + * @return boolean |
|
108 | + */ |
|
103 | 109 | public function canView($item); |
104 | 110 | |
105 | 111 | /** |
@@ -231,6 +237,7 @@ discard block |
||
231 | 237 | |
232 | 238 | /** |
233 | 239 | * Bind request |
240 | + * @return void |
|
234 | 241 | */ |
235 | 242 | public function bindRequest(Request $request); |
236 | 243 |
@@ -11,6 +11,7 @@ discard block |
||
11 | 11 | { |
12 | 12 | /** |
13 | 13 | * Bind current request. |
14 | + * @return void |
|
14 | 15 | */ |
15 | 16 | public function bindRequest(Request $request); |
16 | 17 | |
@@ -20,7 +21,7 @@ discard block |
||
20 | 21 | public function getLimit(); |
21 | 22 | |
22 | 23 | /** |
23 | - * @return array |
|
24 | + * @return integer[] |
|
24 | 25 | */ |
25 | 26 | public function getLimitOptions(); |
26 | 27 | } |
@@ -102,6 +102,9 @@ discard block |
||
102 | 102 | return true; |
103 | 103 | } |
104 | 104 | |
105 | + /** |
|
106 | + * @param \stdClass $item |
|
107 | + */ |
|
105 | 108 | public function getAliasObj($item) |
106 | 109 | { |
107 | 110 | $relation = $this->alias->getRelation(); |
@@ -114,6 +117,9 @@ discard block |
||
114 | 117 | return $item; |
115 | 118 | } |
116 | 119 | |
120 | + /** |
|
121 | + * @param string $column |
|
122 | + */ |
|
117 | 123 | public function getColumnName($column) |
118 | 124 | { |
119 | 125 | $abbr = $this->alias->getAbbr() . '.'; |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | /** |
34 | 34 | * You can override this method to return the correct entity manager when using multiple databases ... |
35 | 35 | * |
36 | - * @return \Doctrine\Common\Persistence\ObjectManager|object |
|
36 | + * @return \Doctrine\Persistence\ObjectManager |
|
37 | 37 | */ |
38 | 38 | protected function getEntityManager() |
39 | 39 | { |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | /** |
44 | 44 | * Shows the list of entities |
45 | 45 | * |
46 | - * @param Request|null $request |
|
46 | + * @param Request $request |
|
47 | 47 | * |
48 | 48 | * @return Response |
49 | 49 | */ |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | * |
92 | 92 | * @param AbstractAdminListConfigurator $configurator The adminlist configurator |
93 | 93 | * @param string $type The type to add |
94 | - * @param Request|null $request |
|
94 | + * @param Request $request |
|
95 | 95 | * |
96 | 96 | * @throws AccessDeniedHttpException |
97 | 97 | * |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | * |
187 | 187 | * @param AbstractAdminListConfigurator $configurator The adminlist configurator |
188 | 188 | * @param string $entityId The id of the entity that will be edited |
189 | - * @param Request|null $request |
|
189 | + * @param Request $request |
|
190 | 190 | * |
191 | 191 | * @throws NotFoundHttpException |
192 | 192 | * @throws AccessDeniedHttpException |
@@ -340,7 +340,7 @@ discard block |
||
340 | 340 | * |
341 | 341 | * @param AbstractAdminListConfigurator $configurator The adminlist configurator |
342 | 342 | * @param int $entityId The id to delete |
343 | - * @param Request|null $request |
|
343 | + * @param Request $request |
|
344 | 344 | * |
345 | 345 | * @throws NotFoundHttpException |
346 | 346 | * @throws AccessDeniedHttpException |
@@ -467,6 +467,9 @@ discard block |
||
467 | 467 | ); |
468 | 468 | } |
469 | 469 | |
470 | + /** |
|
471 | + * @param \Doctrine\Persistence\ObjectRepository $repo |
|
472 | + */ |
|
470 | 473 | private function getMaxSortableField($repo, $sort) |
471 | 474 | { |
472 | 475 | $maxWeight = $repo->createQueryBuilder('i') |
@@ -26,6 +26,10 @@ discard block |
||
26 | 26 | */ |
27 | 27 | private $lockEnabled; |
28 | 28 | |
29 | + /** |
|
30 | + * @param integer $threshold |
|
31 | + * @param boolean $lockEnabled |
|
32 | + */ |
|
29 | 33 | public function __construct(ObjectManager $em, $threshold, $lockEnabled) |
30 | 34 | { |
31 | 35 | $this->setObjectManager($em); |
@@ -133,7 +137,7 @@ discard block |
||
133 | 137 | * |
134 | 138 | * @param User $userToExclude |
135 | 139 | * |
136 | - * @return EntityVersionLock[] |
|
140 | + * @return \Kunstmaan\AdminListBundle\Repository\EntityVersionLock[] |
|
137 | 141 | */ |
138 | 142 | protected function getEntityVersionLocksByLockableEntity(LockableEntity $entity, User $userToExclude = null) |
139 | 143 | { |
@@ -53,7 +53,6 @@ |
||
53 | 53 | |
54 | 54 | /** |
55 | 55 | * @param EngineInterface|Environment $twig |
56 | - * @param ContainerInterface $container |
|
57 | 56 | * @param FormFactoryInterface $formFactory |
58 | 57 | */ |
59 | 58 | public function __construct( |
@@ -15,7 +15,7 @@ |
||
15 | 15 | * |
16 | 16 | * @Route("/", name="kunstmaan_dashboard") |
17 | 17 | * |
18 | - * @return array |
|
18 | + * @return \Symfony\Component\HttpFoundation\Response |
|
19 | 19 | */ |
20 | 20 | public function indexAction(Request $request) |
21 | 21 | { |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | /** |
77 | 77 | * Return the url to edit the given $item |
78 | 78 | * |
79 | - * @param mixed $item |
|
79 | + * @param \PHPUnit\Framework\MockObject\MockObject $item |
|
80 | 80 | * |
81 | 81 | * @return array |
82 | 82 | */ |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | /** |
117 | 117 | * Configure the types of items you can add |
118 | 118 | * |
119 | - * @return array |
|
119 | + * @return string |
|
120 | 120 | */ |
121 | 121 | public function getAddUrlFor(array $params = []) |
122 | 122 | { |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | /** |
127 | 127 | * Configure if it's possible to delete the given $item |
128 | 128 | * |
129 | - * @param mixed $item |
|
129 | + * @param \PHPUnit\Framework\MockObject\MockObject $item |
|
130 | 130 | * |
131 | 131 | * @return bool |
132 | 132 | */ |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | /** |
139 | 139 | * Get the delete url for the given $item |
140 | 140 | * |
141 | - * @param mixed $item |
|
141 | + * @param \PHPUnit\Framework\MockObject\MockObject $item |
|
142 | 142 | * |
143 | 143 | * @return array |
144 | 144 | */ |