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

PermissionController::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
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