@@ -21,7 +21,7 @@ |
||
21 | 21 | } |
22 | 22 | |
23 | 23 | /** |
24 | - * @return array |
|
24 | + * @return string[] |
|
25 | 25 | */ |
26 | 26 | public function getAccessRoles() |
27 | 27 | { |
@@ -21,7 +21,7 @@ |
||
21 | 21 | } |
22 | 22 | |
23 | 23 | /** |
24 | - * @return array |
|
24 | + * @return string[] |
|
25 | 25 | */ |
26 | 26 | public function getAccessRoles() |
27 | 27 | { |
@@ -12,6 +12,9 @@ |
||
12 | 12 | |
13 | 13 | class ExceptionController extends AdminListController |
14 | 14 | { |
15 | + /** |
|
16 | + * @return \Kunstmaan\AdminListBundle\AdminList\Configurator\AbstractAdminListConfigurator |
|
17 | + */ |
|
15 | 18 | private function getAdminListConfigurator() |
16 | 19 | { |
17 | 20 | if (!isset($this->configurator)) { |
@@ -14,16 +14,19 @@ |
||
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 | |
20 | 21 | /** |
21 | 22 | * @param Request $request |
23 | + * @return void |
|
22 | 24 | */ |
23 | 25 | public function bindRequest(Request $request); |
24 | 26 | |
25 | 27 | /** |
26 | 28 | * @param EntityManager $em The entity manager |
29 | + * @return void |
|
27 | 30 | */ |
28 | 31 | public function persist(EntityManager $em); |
29 | 32 |
@@ -133,7 +133,7 @@ |
||
133 | 133 | /** |
134 | 134 | * Return an iterator for all items that matches the current filtering |
135 | 135 | * |
136 | - * @return \Iterator |
|
136 | + * @return Statement |
|
137 | 137 | */ |
138 | 138 | public function getIterator() |
139 | 139 | { |
@@ -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 | |
@@ -93,6 +96,9 @@ discard block |
||
93 | 96 | */ |
94 | 97 | public function canEdit($item); |
95 | 98 | |
99 | + /** |
|
100 | + * @return boolean |
|
101 | + */ |
|
96 | 102 | public function canView($item); |
97 | 103 | |
98 | 104 | /** |
@@ -226,6 +232,7 @@ discard block |
||
226 | 232 | * Bind request |
227 | 233 | * |
228 | 234 | * @param Request $request |
235 | + * @return void |
|
229 | 236 | */ |
230 | 237 | public function bindRequest(Request $request); |
231 | 238 |
@@ -14,7 +14,7 @@ |
||
14 | 14 | * Construct Exception. |
15 | 15 | * |
16 | 16 | * @param string $message Message |
17 | - * @param mixed $data |
|
17 | + * @param string $data |
|
18 | 18 | * @param int $code |
19 | 19 | * @param \Throwable $previous |
20 | 20 | */ |
@@ -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); |
@@ -146,7 +150,7 @@ discard block |
||
146 | 150 | * @param LockableEntity $entity |
147 | 151 | * @param User $userToExclude |
148 | 152 | * |
149 | - * @return EntityVersionLock[] |
|
153 | + * @return \Kunstmaan\AdminListBundle\Repository\EntityVersionLock[] |
|
150 | 154 | */ |
151 | 155 | protected function getEntityVersionLocksByLockableEntity(LockableEntity $entity, User $userToExclude = null) |
152 | 156 | { |
@@ -11,6 +11,9 @@ |
||
11 | 11 | { |
12 | 12 | protected $id; |
13 | 13 | |
14 | + /** |
|
15 | + * @param string $id |
|
16 | + */ |
|
14 | 17 | public function __construct($id) |
15 | 18 | { |
16 | 19 | $this->setId($id); |