| 1 | <?php |
||
| 2 | |||
| 3 | namespace Loevgaard\DandomainFoundation\Entity; |
||
| 4 | |||
| 5 | use Doctrine\ORM\Mapping as ORM; |
||
| 6 | use Loevgaard\DandomainFoundation\Entity\Generated\UnitInterface; |
||
|
0 ignored issues
–
show
|
|||
| 7 | use Loevgaard\DandomainFoundation\Entity\Generated\UnitTrait; |
||
|
0 ignored issues
–
show
The type
Loevgaard\DandomainFound...ity\Generated\UnitTrait was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 8 | |||
| 9 | /** |
||
| 10 | * @ORM\Entity() |
||
| 11 | * @ORM\Table(name="ldf_units") |
||
| 12 | */ |
||
| 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 |
|
| 68 | { |
||
| 69 | 1 | return (int) $this->externalId; |
|
| 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() |
|
| 88 | { |
||
| 89 | 3 | return $this->text; |
|
| 90 | } |
||
| 91 | 2 | ||
| 92 | /** |
||
| 93 | 2 | * @param null|string $text |
|
| 94 | * |
||
| 95 | * @return UnitInterface |
||
| 96 | */ |
||
| 97 | 1 | public function setText($text) |
|
| 98 | { |
||
| 99 | 1 | $this->text = $text; |
|
| 100 | |||
| 101 | 1 | return $this; |
|
| 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