| Total Complexity | 7 |
| Total Lines | 69 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | #[ORM\Table(name: 'ticket_status')] |
||
| 15 | #[ORM\Entity] |
||
| 16 | class TicketStatus |
||
| 17 | { |
||
| 18 | #[ORM\Column(name: 'id', type: 'integer')] |
||
| 19 | #[ORM\Id] |
||
| 20 | #[ORM\GeneratedValue] |
||
| 21 | protected ?int $id = null; |
||
| 22 | |||
| 23 | #[ORM\Column(name: 'code', type: 'string', length: 255, nullable: false)] |
||
| 24 | protected string $code; |
||
| 25 | |||
| 26 | #[ORM\Column(name: 'title', type: 'string', length: 255, nullable: false)] |
||
| 27 | protected string $title; |
||
| 28 | |||
| 29 | #[ORM\Column(name: 'description', type: 'text', nullable: true)] |
||
| 30 | protected ?string $description = null; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return int |
||
| 34 | */ |
||
| 35 | public function getId() |
||
| 36 | { |
||
| 37 | return $this->id; |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return string |
||
| 42 | */ |
||
| 43 | public function getCode() |
||
| 46 | } |
||
| 47 | |||
| 48 | public function setCode(string $code): self |
||
| 53 | } |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @return string |
||
| 57 | */ |
||
| 58 | public function getTitle() |
||
| 59 | { |
||
| 60 | return $this->title; |
||
| 61 | } |
||
| 62 | |||
| 63 | public function setTitle(string $title): self |
||
| 64 | { |
||
| 65 | $this->title = $title; |
||
| 66 | |||
| 67 | return $this; |
||
| 68 | } |
||
| 69 | |||
| 70 | /** |
||
| 71 | * @return string |
||
| 72 | */ |
||
| 73 | public function getDescription() |
||
| 76 | } |
||
| 77 | |||
| 78 | public function setDescription(string $description): self |
||
| 83 | } |
||
| 84 | } |
||
| 85 |