| Total Complexity | 3 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | trait EntityIdTrait |
||
| 16 | { |
||
| 17 | |||
| 18 | use CreateNewTokenTrait; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * The unique auto incremented primary key. |
||
| 22 | * |
||
| 23 | * @var int|null |
||
| 24 | * |
||
| 25 | * @ORM\Id |
||
| 26 | * @ORM\Column(type="integer", options={"unsigned": true}) |
||
| 27 | * @ORM\GeneratedValue |
||
| 28 | */ |
||
| 29 | protected $id; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * The internal primary identity key. |
||
| 33 | * |
||
| 34 | * @var UuidInterface |
||
| 35 | * |
||
| 36 | * @ORM\Column(type="uuid", unique=true) |
||
| 37 | */ |
||
| 38 | protected $uuid; |
||
| 39 | |||
| 40 | public function getId(): ?int |
||
| 43 | } |
||
| 44 | |||
| 45 | public function getUuid(): UuidInterface |
||
| 46 | { |
||
| 47 | return $this->uuid; |
||
| 48 | } |
||
| 49 | |||
| 50 | public function createUuid() |
||
| 53 | } |
||
| 54 | } |
||
| 55 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..