@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | /** |
23 | 23 | * Constructor |
24 | 24 | * |
25 | - * @param object $em entity manager |
|
25 | + * @param EntityManager $em entity manager |
|
26 | 26 | */ |
27 | 27 | public function __construct(EntityManager $em) |
28 | 28 | { |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | * |
35 | 35 | * @param Event $event event |
36 | 36 | * |
37 | - * @return Repository |
|
37 | + * @return \Doctrine\Persistence\ObjectRepository|null |
|
38 | 38 | */ |
39 | 39 | public function getRepositoryForEvent($event) |
40 | 40 | { |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | * |
69 | 69 | * @param string $name name |
70 | 70 | * |
71 | - * @return Repository |
|
71 | + * @return \Doctrine\Persistence\ObjectRepository |
|
72 | 72 | */ |
73 | 73 | protected function getRepository($name) |
74 | 74 | { |
@@ -84,6 +84,10 @@ discard block |
||
84 | 84 | } |
85 | 85 | } |
86 | 86 | |
87 | + /** |
|
88 | + * @param string $locale |
|
89 | + * @param string $title |
|
90 | + */ |
|
87 | 91 | public function clonePage(Node $originalNode, $locale, $title = null) |
88 | 92 | { |
89 | 93 | $originalNodeTranslations = $originalNode->getNodeTranslation($locale, true); |
@@ -123,6 +127,10 @@ discard block |
||
123 | 127 | return $nodeNewPage; |
124 | 128 | } |
125 | 129 | |
130 | + /** |
|
131 | + * @param Node $originalNode |
|
132 | + * @param Node $nodeNewPage |
|
133 | + */ |
|
126 | 134 | private function updateAcl($originalNode, $nodeNewPage): void |
127 | 135 | { |
128 | 136 | $originalIdentity = $this->identityRetrievalStrategy->getObjectIdentity($originalNode); |
@@ -155,7 +155,7 @@ |
||
155 | 155 | } |
156 | 156 | |
157 | 157 | /** |
158 | - * @return array |
|
158 | + * @return string[] |
|
159 | 159 | */ |
160 | 160 | protected function getCurrentUserRoles() |
161 | 161 | { |
@@ -156,7 +156,7 @@ |
||
156 | 156 | } |
157 | 157 | |
158 | 158 | /** |
159 | - * @param NodeMenuItem|false|null $parent |
|
159 | + * @param NodeMenuItem $parent |
|
160 | 160 | */ |
161 | 161 | public function setParent($parent = false) |
162 | 162 | { |
@@ -17,6 +17,7 @@ |
||
17 | 17 | * @param MenuItem[] $children The current children |
18 | 18 | * @param MenuItem|null $parent The parent Menu item |
19 | 19 | * @param Request|null $request The Request |
20 | + * @return void |
|
20 | 21 | */ |
21 | 22 | public function adaptChildren(MenuBuilder $menu, array &$children, MenuItem $parent = null, Request $request = null); |
22 | 23 | } |
@@ -12,7 +12,7 @@ |
||
12 | 12 | class KunstmaanAdminExtensionTest extends AbstractExtensionTestCase |
13 | 13 | { |
14 | 14 | /** |
15 | - * @return ExtensionInterface[] |
|
15 | + * @return KunstmaanAdminExtension[] |
|
16 | 16 | */ |
17 | 17 | protected function getContainerExtensions() |
18 | 18 | { |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | /** |
147 | 147 | * Return entity manager mock |
148 | 148 | * |
149 | - * @return EntityManager |
|
149 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
150 | 150 | */ |
151 | 151 | public function getEntityManager() |
152 | 152 | { |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | /** |
159 | 159 | * Return alc provider mock |
160 | 160 | * |
161 | - * @return AclProviderInterface |
|
161 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
162 | 162 | */ |
163 | 163 | public function getAclProvider() |
164 | 164 | { |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | /** |
169 | 169 | * Return security token storage |
170 | 170 | * |
171 | - * @return TokenStorageInterface |
|
171 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
172 | 172 | */ |
173 | 173 | public function getTokenStorage() |
174 | 174 | { |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | /** |
179 | 179 | * Return oid retrieval strategy mock |
180 | 180 | * |
181 | - * @return ObjectIdentityRetrievalStrategyInterface |
|
181 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
182 | 182 | */ |
183 | 183 | public function getOidRetrievalStrategy() |
184 | 184 | { |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | } |
205 | 205 | |
206 | 206 | /** |
207 | - * @return KernelInterface |
|
207 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
208 | 208 | */ |
209 | 209 | public function getKernel() |
210 | 210 | { |
@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | /** |
267 | 267 | * Return entity mock |
268 | 268 | * |
269 | - * @return AbstractEntity |
|
269 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
270 | 270 | */ |
271 | 271 | public function getEntity() |
272 | 272 | { |
@@ -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 |