| Total Complexity | 5 |
| Total Lines | 58 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | #[ORM\Table(name: 'skill_profile')] |
||
| 13 | #[ORM\Entity] |
||
| 14 | class SkillProfile |
||
| 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', length: 255, nullable: false)] |
||
| 23 | protected string $title; |
||
| 24 | |||
| 25 | #[ORM\Column(name: 'description', type: 'text', nullable: false)] |
||
| 26 | protected string $description; |
||
| 27 | |||
| 28 | public function setTitle(string $title): self |
||
| 29 | { |
||
| 30 | $this->title = $title; |
||
| 31 | |||
| 32 | return $this; |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Get title. |
||
| 37 | * |
||
| 38 | * @return string |
||
| 39 | */ |
||
| 40 | public function getTitle() |
||
| 41 | { |
||
| 42 | return $this->title; |
||
| 43 | } |
||
| 44 | |||
| 45 | public function setDescription(string $description): self |
||
| 46 | { |
||
| 47 | $this->description = $description; |
||
| 48 | |||
| 49 | return $this; |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Get description. |
||
| 54 | * |
||
| 55 | * @return string |
||
| 56 | */ |
||
| 57 | public function getDescription() |
||
| 60 | } |
||
| 61 | |||
| 62 | /** |
||
| 63 | * Get id. |
||
| 64 | * |
||
| 65 | * @return int |
||
| 66 | */ |
||
| 67 | public function getId() |
||
| 70 | } |
||
| 71 | } |
||
| 72 |