1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | namespace Platine\App\Param; |
||
6 | |||
7 | use Platine\Framework\Form\Param\BaseParam; |
||
8 | use Platine\Orm\Entity; |
||
9 | |||
10 | /** |
||
11 | * @class PermissionParam |
||
12 | * @package Platine\App\Param |
||
13 | * @template TEntity as Entity |
||
14 | */ |
||
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 |
||
0 ignored issues
–
show
|
|||
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 |
||
55 | { |
||
56 | return $this->description; |
||
57 | } |
||
58 | |||
59 | /** |
||
60 | * Set the code value |
||
61 | * @param string $code |
||
62 | * @return $this |
||
63 | */ |
||
64 | public function setCode(string $code): self |
||
65 | { |
||
66 | $this->code = $code; |
||
67 | |||
68 | return $this; |
||
69 | } |
||
70 | |||
71 | /** |
||
72 | * Set the description value |
||
73 | * @param string $description |
||
74 | * @return $this |
||
75 | */ |
||
76 | public function setDescription(string $description): self |
||
77 | { |
||
78 | $this->description = $description; |
||
79 | |||
80 | return $this; |
||
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