| Total Complexity | 7 |
| Total Lines | 95 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | class RoleParam 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 | * The permissions field |
||
| 31 | * @var array<int> |
||
| 32 | */ |
||
| 33 | protected array $permissions = []; |
||
| 34 | |||
| 35 | |||
| 36 | /** |
||
| 37 | * @param TEntity $entity |
||
|
|
|||
| 38 | * @return $this |
||
| 39 | */ |
||
| 40 | public function fromEntity(Entity $entity): self |
||
| 41 | { |
||
| 42 | $this->name = $entity->name; |
||
| 43 | $this->description = $entity->description; |
||
| 44 | |||
| 45 | return $this; |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Return the name value |
||
| 50 | * @return string |
||
| 51 | */ |
||
| 52 | public function getName(): string |
||
| 53 | { |
||
| 54 | return $this->name; |
||
| 55 | } |
||
| 56 | |||
| 57 | /** |
||
| 58 | * Return the description value |
||
| 59 | * @return string|null |
||
| 60 | */ |
||
| 61 | public function getDescription(): ?string |
||
| 62 | { |
||
| 63 | return $this->description; |
||
| 64 | } |
||
| 65 | |||
| 66 | /** |
||
| 67 | * Return the permissions value |
||
| 68 | * @return array<int> |
||
| 69 | */ |
||
| 70 | public function getPermissions(): array |
||
| 71 | { |
||
| 72 | return $this->permissions; |
||
| 73 | } |
||
| 74 | |||
| 75 | |||
| 76 | /** |
||
| 77 | * Set the name value |
||
| 78 | * @param string $name |
||
| 79 | * @return $this |
||
| 80 | */ |
||
| 81 | public function setName(string $name): self |
||
| 82 | { |
||
| 83 | $this->name = $name; |
||
| 84 | |||
| 85 | return $this; |
||
| 86 | } |
||
| 87 | |||
| 88 | /** |
||
| 89 | * Set the description value |
||
| 90 | * @param string|null $description |
||
| 91 | * @return $this |
||
| 92 | */ |
||
| 93 | public function setDescription(?string $description): self |
||
| 94 | { |
||
| 95 | $this->description = $description; |
||
| 96 | |||
| 97 | return $this; |
||
| 98 | } |
||
| 99 | |||
| 100 | /** |
||
| 101 | * Set the permissions value |
||
| 102 | * @param array<int> $permissions |
||
| 103 | * @return $this |
||
| 104 | */ |
||
| 105 | public function setPermissions(array $permissions): self |
||
| 110 | } |
||
| 111 | } |
||
| 112 |
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