@@ -19,6 +19,11 @@ discard block |
||
19 | 19 | /** @var EntityRepository */ |
20 | 20 | private $repo; |
21 | 21 | |
22 | + /** |
|
23 | + * @param string $locale |
|
24 | + * @param string $permission |
|
25 | + * @param \PHPUnit\Framework\MockObject\MockObject $repo |
|
26 | + */ |
|
22 | 27 | public function __construct(EntityManager $em, AclHelper $aclHelper, $locale, $permission, $repo) |
23 | 28 | { |
24 | 29 | parent::__construct($em, $aclHelper, $locale, $permission); |
@@ -26,7 +31,7 @@ discard block |
||
26 | 31 | } |
27 | 32 | |
28 | 33 | /** |
29 | - * @return bool |
|
34 | + * @return EntityRepository |
|
30 | 35 | */ |
31 | 36 | public function getOverviewPageRepository() |
32 | 37 | { |
@@ -12,7 +12,7 @@ |
||
12 | 12 | class KunstmaanArticleExtensionTest extends AbstractExtensionTestCase |
13 | 13 | { |
14 | 14 | /** |
15 | - * @return ExtensionInterface[] |
|
15 | + * @return KunstmaanArticleExtension[] |
|
16 | 16 | */ |
17 | 17 | protected function getContainerExtensions() |
18 | 18 | { |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | * |
137 | 137 | * @param Role $role |
138 | 138 | * |
139 | - * @return GroupInterface |
|
139 | + * @return GroupPropertiesTrait |
|
140 | 140 | * |
141 | 141 | * @throws InvalidArgumentException |
142 | 142 | */ |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | * |
159 | 159 | * @param string $role |
160 | 160 | * |
161 | - * @return GroupInterface |
|
161 | + * @return GroupPropertiesTrait |
|
162 | 162 | */ |
163 | 163 | public function removeRole($role) |
164 | 164 | { |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | * |
176 | 176 | * @param Role[] $roles array of Role objects |
177 | 177 | * |
178 | - * @return GroupInterface |
|
178 | + * @return GroupPropertiesTrait |
|
179 | 179 | */ |
180 | 180 | public function setRoles(array $roles) |
181 | 181 | { |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | /** |
191 | 191 | * Directly set the ArrayCollection of Roles. Type hinted as Collection which is the parent of (Array|Persistent)Collection. |
192 | 192 | * |
193 | - * @return GroupInterface |
|
193 | + * @return GroupPropertiesTrait |
|
194 | 194 | */ |
195 | 195 | public function setRolesCollection(Collection $collection) |
196 | 196 | { |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | * |
215 | 215 | * @param string $name New name of the group |
216 | 216 | * |
217 | - * @return GroupInterface |
|
217 | + * @return GroupPropertiesTrait |
|
218 | 218 | */ |
219 | 219 | public function setName($name) |
220 | 220 | { |
@@ -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() . '.'; |
@@ -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( |