| Total Complexity | 6 |
| Total Lines | 89 |
| Duplicated Lines | 0 % |
| Coverage | 87.5% |
| Changes | 3 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 13 | class Unit extends AbstractEntity implements UnitInterface |
||
| 14 | { |
||
| 15 | use UnitTrait; |
||
| 16 | |||
| 17 | protected $hydrateConversions = [ |
||
| 18 | 'id' => 'externalId', |
||
| 19 | ]; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var int |
||
| 23 | * |
||
| 24 | * @ORM\Id |
||
| 25 | * @ORM\GeneratedValue |
||
| 26 | * @ORM\Column(type="integer") |
||
| 27 | **/ |
||
| 28 | protected $id; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var int |
||
| 32 | * |
||
| 33 | * @ORM\Column(type="integer", unique=true) |
||
| 34 | */ |
||
| 35 | protected $externalId; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @var string|null |
||
| 39 | * |
||
| 40 | * @ORM\Column(nullable=true, type="text") |
||
| 41 | */ |
||
| 42 | protected $text; |
||
| 43 | |||
| 44 | 4 | /** |
|
| 45 | * @return int |
||
| 46 | 4 | */ |
|
| 47 | 2 | public function getId(): int |
|
| 48 | { |
||
| 49 | 2 | return (int) $this->id; |
|
| 50 | } |
||
| 51 | |||
| 52 | 2 | /** |
|
| 53 | * @param int $id |
||
| 54 | 2 | * |
|
| 55 | * @return UnitInterface |
||
| 56 | 2 | */ |
|
| 57 | 1 | public function setId(int $id) |
|
| 58 | { |
||
| 59 | 3 | $this->id = $id; |
|
| 60 | |||
| 61 | 3 | return $this; |
|
| 62 | } |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @return int |
||
| 66 | */ |
||
| 67 | 1 | public function getExternalId(): int |
|
| 70 | } |
||
| 71 | |||
| 72 | /** |
||
| 73 | * @param mixed $externalId |
||
| 74 | * |
||
| 75 | * @return UnitInterface |
||
| 76 | */ |
||
| 77 | public function setExternalId($externalId) |
||
| 78 | { |
||
| 79 | 2 | $this->externalId = (int) $externalId; |
|
| 80 | |||
| 81 | 2 | return $this; |
|
| 82 | } |
||
| 83 | |||
| 84 | /** |
||
| 85 | * @return null|string |
||
| 86 | */ |
||
| 87 | 1 | public function getText() |
|
| 90 | } |
||
| 91 | 2 | ||
| 92 | /** |
||
| 93 | 2 | * @param null|string $text |
|
| 94 | * |
||
| 95 | * @return UnitInterface |
||
| 96 | */ |
||
| 97 | 1 | public function setText($text) |
|
| 102 | } |
||
| 103 | } |
||
| 104 |
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