Completed
Push — master ( eb2586...ec2395 )
by Sherif
01:59
created

PermissionController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace App\Modules\Acl\Http\Controllers;
4
5
use App\Modules\Core\Http\Controllers\BaseApiController;
6
use App\Modules\Acl\Repositories\PermissionRepository;
7
use App\Modules\Core\Utl\CoreConfig;
8
9
class PermissionController extends BaseApiController
10
{
11
    /**
12
     * Init new object.
13
     *
14
     * @param   PermissionRepository $repo
15
     * @param   CoreConfig           $config
16
     * @return  void
0 ignored issues
show
Comprehensibility Best Practice introduced by
Adding a @return annotation to constructors is generally not recommended as a constructor does not have a meaningful return value.

Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.

Please refer to the PHP core documentation on constructors.

Loading history...
17
     */
18
    public function __construct(PermissionRepository $repo, CoreConfig $config)
19
    {
20
        parent::__construct($repo, $config, 'App\Modules\Acl\Http\Resources\AclPermission');
21
    }
22
}
23