Completed
Push — master ( d6cf83...a2ccb4 )
by Philip
13:40
created
Controller/AbstractRestResourceController.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -239,11 +239,17 @@  discard block
 block discarded – undo
239 239
         return $entity;
240 240
     }
241 241
 
242
+    /**
243
+     * @return string
244
+     */
242 245
     protected function getEntityClass()
243 246
     {
244 247
         return $this->getCurrentRequest()->attributes->get('_entityClass');
245 248
     }
246 249
 
250
+    /**
251
+     * @param string $subresource
252
+     */
247 253
     protected function getSubResourceEntityClass($subresource)
248 254
     {
249 255
         /** @var PropertyMetadata $propertyMetadata */
@@ -293,6 +299,9 @@  discard block
 block discarded – undo
293 299
         return $classMetaData;
294 300
     }
295 301
 
302
+    /**
303
+     * @param string $propertyPath
304
+     */
296 305
     protected function resolveSubject($entity, $propertyPath)
297 306
     {
298 307
         if ('this' === $propertyPath) {
@@ -335,6 +344,9 @@  discard block
 block discarded – undo
335 344
         return array_merge($defaultIncludes, $includes);
336 345
     }
337 346
 
347
+    /**
348
+     * @param string[] $attributes
349
+     */
338 350
     protected function denyAccessUnlessGranted($attributes, $object = null, $message = 'Access Denied.')
339 351
     {
340 352
         if (!$this->getAuthorizationChecker()->isGranted($attributes, $object)) {
Please login to merge, or discard this patch.