Total Complexity | 5 |
Total Lines | 66 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | class PermissionParam extends BaseParam |
||
16 | { |
||
17 | /** |
||
18 | * The code field |
||
19 | * @var string |
||
20 | */ |
||
21 | protected string $code; |
||
22 | |||
23 | /** |
||
24 | * The description field |
||
25 | * @var string |
||
26 | */ |
||
27 | protected string $description; |
||
28 | |||
29 | /** |
||
30 | * @param TEntity $entity |
||
|
|||
31 | * @return $this |
||
32 | */ |
||
33 | public function fromEntity(Entity $entity): self |
||
34 | { |
||
35 | $this->code = $entity->code; |
||
36 | $this->description = $entity->description; |
||
37 | |||
38 | return $this; |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * Return the code value |
||
43 | * @return string |
||
44 | */ |
||
45 | public function getCode(): string |
||
46 | { |
||
47 | return $this->code; |
||
48 | } |
||
49 | |||
50 | /** |
||
51 | * Return the description value |
||
52 | * @return string |
||
53 | */ |
||
54 | public function getDescription(): string |
||
57 | } |
||
58 | |||
59 | /** |
||
60 | * Set the code value |
||
61 | * @param string $code |
||
62 | * @return $this |
||
63 | */ |
||
64 | public function setCode(string $code): self |
||
69 | } |
||
70 | |||
71 | /** |
||
72 | * Set the description value |
||
73 | * @param string $description |
||
74 | * @return $this |
||
75 | */ |
||
76 | public function setDescription(string $description): self |
||
81 | } |
||
82 | } |
||
83 |
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:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths