| Total Complexity | 7 |
| Total Lines | 72 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | #[ORM\Table(name: 'sequence_variable')] |
||
| 13 | #[ORM\Entity] |
||
| 14 | class SequenceVariable |
||
| 15 | { |
||
| 16 | #[ORM\Column(name: 'id', type: 'integer')] |
||
| 17 | #[ORM\Id] |
||
| 18 | #[ORM\GeneratedValue] |
||
| 19 | protected ?int $id = null; |
||
| 20 | |||
| 21 | #[Assert\NotBlank] |
||
| 22 | #[ORM\Column(name: 'title', type: 'string', nullable: true)] |
||
| 23 | protected ?string $title = null; |
||
| 24 | |||
| 25 | #[ORM\Column(name: 'description', type: 'text', nullable: true)] |
||
| 26 | protected ?string $description = null; |
||
| 27 | |||
| 28 | #[ORM\Column(name: 'default_val', type: 'string', nullable: true)] |
||
| 29 | protected ?string $defaultValue = null; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Get id. |
||
| 33 | * |
||
| 34 | * @return int |
||
| 35 | */ |
||
| 36 | public function getId() |
||
| 37 | { |
||
| 38 | return $this->id; |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return string |
||
| 43 | */ |
||
| 44 | public function getTitle() |
||
| 45 | { |
||
| 46 | return $this->title; |
||
| 47 | } |
||
| 48 | |||
| 49 | public function setTitle(string $title): self |
||
| 50 | { |
||
| 51 | $this->title = $title; |
||
| 52 | |||
| 53 | return $this; |
||
| 54 | } |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @return string |
||
| 58 | */ |
||
| 59 | public function getDefaultValue() |
||
| 60 | { |
||
| 61 | return $this->defaultValue; |
||
| 62 | } |
||
| 63 | |||
| 64 | public function setDefaultValue(string $defaultValue): self |
||
| 65 | { |
||
| 66 | $this->defaultValue = $defaultValue; |
||
| 67 | |||
| 68 | return $this; |
||
| 69 | } |
||
| 70 | |||
| 71 | /** |
||
| 72 | * @return string |
||
| 73 | */ |
||
| 74 | public function getDescription() |
||
| 77 | } |
||
| 78 | |||
| 79 | public function setDescription(string $description): self |
||
| 84 | } |
||
| 85 | } |
||
| 86 |