Total Complexity | 11 |
Total Lines | 72 |
Duplicated Lines | 0 % |
Coverage | 71.43% |
Changes | 3 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
15 | abstract class AbstractAclPart { |
||
16 | |||
17 | /** |
||
18 | * |
||
19 | * @id |
||
20 | * @column("name"=>"name","nullable"=>false,"dbType"=>"varchar(100)") |
||
21 | */ |
||
22 | #[\Ubiquity\attributes\items\Id()] |
||
23 | #[\Ubiquity\attributes\items\Column(name:'name',nullable:false,dbType:'varchar(100)')] |
||
24 | protected $name; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | * @transient |
||
29 | */ |
||
30 | #[Transient] |
||
31 | protected $type=''; |
||
32 | |||
33 | 22 | public function __construct(?string $name = null) { |
|
35 | } |
||
36 | |||
37 | /** |
||
38 | * |
||
39 | * @return mixed |
||
40 | */ |
||
41 | 22 | public function getName() { |
|
42 | 22 | return $this->name; |
|
43 | } |
||
44 | |||
45 | public function getId_() { |
||
46 | return $this->name; |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * |
||
51 | * @param string $name |
||
52 | */ |
||
53 | 4 | public function setName($name) { |
|
54 | 4 | $this->name = $name; |
|
55 | } |
||
56 | |||
57 | 5 | public function toArray(): array { |
|
58 | 5 | return \get_object_vars($this); |
|
59 | } |
||
60 | |||
61 | 6 | public function fromArray(array $values) { |
|
62 | 6 | foreach ($values as $k => $v) { |
|
63 | 6 | $this->$k = $v; |
|
64 | } |
||
65 | } |
||
66 | |||
67 | public function __toString() { |
||
69 | } |
||
70 | |||
71 | /** |
||
72 | * @return string |
||
73 | */ |
||
74 | public function getType(): string { |
||
76 | } |
||
77 | |||
78 | /** |
||
79 | * @param string $type |
||
80 | */ |
||
81 | 4 | public function setType(?string $type): void { |
|
82 | 4 | $this->type = $type; |
|
83 | } |
||
84 | |||
85 | 3 | public function castAs(string $class) { |
|
87 | } |
||
88 | } |
||
89 | |||
90 |
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