Total Complexity | 5 |
Total Lines | 68 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | class ProductCategoryParam extends BaseParam |
||
16 | { |
||
17 | /** |
||
18 | * The name field |
||
19 | * @var string |
||
20 | */ |
||
21 | protected string $name; |
||
22 | |||
23 | /** |
||
24 | * The description field |
||
25 | * @var string|null |
||
26 | */ |
||
27 | protected ?string $description = null; |
||
28 | |||
29 | |||
30 | /** |
||
31 | * @param TEntity $entity |
||
|
|||
32 | * @return $this |
||
33 | */ |
||
34 | public function fromEntity(Entity $entity): self |
||
35 | { |
||
36 | $this->name = $entity->name; |
||
37 | $this->description = $entity->description; |
||
38 | |||
39 | return $this; |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * Return the name value |
||
44 | * @return string |
||
45 | */ |
||
46 | public function getName(): string |
||
47 | { |
||
48 | return $this->name; |
||
49 | } |
||
50 | |||
51 | /** |
||
52 | * Return the description value |
||
53 | * @return string|null |
||
54 | */ |
||
55 | public function getDescription(): ?string |
||
58 | } |
||
59 | |||
60 | |||
61 | /** |
||
62 | * Set the name value |
||
63 | * @param string $name |
||
64 | * @return $this |
||
65 | */ |
||
66 | public function setName(string $name): self |
||
67 | { |
||
68 | $this->name = $name; |
||
69 | |||
70 | return $this; |
||
71 | } |
||
72 | |||
73 | /** |
||
74 | * Set the description value |
||
75 | * @param string|null $description |
||
76 | * @return $this |
||
77 | */ |
||
78 | public function setDescription(?string $description): self |
||
83 | } |
||
84 | } |
||
85 |
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