| Total Complexity | 6 |
| Total Lines | 79 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class Unit implements UnitInterface |
||
| 14 | { |
||
| 15 | use UnitTrait; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var int |
||
| 19 | * |
||
| 20 | * @ORM\Id |
||
| 21 | * @ORM\GeneratedValue |
||
| 22 | * @ORM\Column(type="integer") |
||
| 23 | **/ |
||
| 24 | protected $id; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var int |
||
| 28 | * |
||
| 29 | * @ORM\Column(type="integer", unique=true) |
||
| 30 | */ |
||
| 31 | protected $externalId; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @var string|null |
||
| 35 | * |
||
| 36 | * @ORM\Column(nullable=true, type="text") |
||
| 37 | */ |
||
| 38 | protected $text; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return int |
||
| 42 | */ |
||
| 43 | public function getId(): int |
||
| 44 | { |
||
| 45 | return (int)$this->id; |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @param int $id |
||
| 50 | * @return Unit |
||
| 51 | */ |
||
| 52 | public function setId(int $id) |
||
| 53 | { |
||
| 54 | $this->id = $id; |
||
| 55 | return $this; |
||
| 56 | } |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @return int |
||
| 60 | */ |
||
| 61 | public function getExternalId(): int |
||
| 64 | } |
||
| 65 | |||
| 66 | /** |
||
| 67 | * @param int $externalId |
||
| 68 | * @return Unit |
||
| 69 | */ |
||
| 70 | public function setExternalId(int $externalId) |
||
| 74 | } |
||
| 75 | |||
| 76 | /** |
||
| 77 | * @return null|string |
||
| 78 | */ |
||
| 79 | public function getText() |
||
| 82 | } |
||
| 83 | |||
| 84 | /** |
||
| 85 | * @param null|string $text |
||
| 86 | * @return Unit |
||
| 87 | */ |
||
| 88 | public function setText($text) |
||
| 92 | } |
||
| 93 | } |
||
| 94 |