User   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 12
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
namespace Leonidas\Library\System\Model\User;
4
5
use Leonidas\Contracts\System\Model\User\MutableUserInterface;
6
use Leonidas\Library\System\Model\Abstracts\AllAccessGrantedTrait;
7
use Leonidas\Library\System\Model\Abstracts\User\MutableUserModelTrait;
8
use Leonidas\Library\System\Model\Abstracts\User\ValidatesRoleTrait;
9
use WP_User;
0 ignored issues
show
Bug introduced by
The type WP_User was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
10
11
class User implements MutableUserInterface
12
{
13
    use AllAccessGrantedTrait;
14
    use MutableUserModelTrait;
0 ignored issues
show
introduced by
The trait Leonidas\Library\System\...r\MutableUserModelTrait requires some properties which are not provided by Leonidas\Library\System\Model\User\User: $ID, $data, $allcaps
Loading history...
15
    use ValidatesRoleTrait;
16
17
    public function __construct(WP_User $user)
18
    {
19
        $this->user = $user;
20
21
        $this->getAccessProvider = new UserGetAccessProvider($this);
22
        $this->setAccessProvider = new UserSetAccessProvider($this);
23
    }
24
}
25