Passed
Pull Request — 2.x (#1049)
by
unknown
13:20
created

RoleRepository   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 7
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
namespace A17\Twill\Repositories;
4
5
use A17\Twill\Models\Role;
6
use A17\Twill\Repositories\Behaviors\HandleRolePermissions;
7
8
class RoleRepository extends ModuleRepository
9
{
10
    use HandleRolePermissions;
0 ignored issues
show
Bug introduced by
The trait A17\Twill\Repositories\B...s\HandleRolePermissions requires the property $name which is not provided by A17\Twill\Repositories\RoleRepository.
Loading history...
11
12
    public function __construct(Role $model)
13
    {
14
        $this->model = $model;
0 ignored issues
show
Documentation Bug introduced by
It seems like $model of type A17\Twill\Models\Role is incompatible with the declared type A17\Twill\Models\Model of property $model.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
15
    }
16
}
17