Total Complexity | 5 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | #[Entity] |
||
16 | #[Table(name: 'contact_form_contact_category')] |
||
17 | class ContactCategory |
||
18 | { |
||
19 | #[Id] |
||
20 | #[GeneratedValue] |
||
21 | #[Column(type: 'integer')] |
||
22 | private ?int $id = null; |
||
23 | |||
24 | #[Column(type: 'string', length: 255)] |
||
25 | private string $title; |
||
26 | |||
27 | #[Column(type: 'string', length: 255)] |
||
28 | private string $email; |
||
29 | |||
30 | public function getId(): ?int |
||
31 | { |
||
32 | return $this->id; |
||
33 | } |
||
34 | |||
35 | public function getTitle(): string |
||
36 | { |
||
37 | return $this->title; |
||
38 | } |
||
39 | |||
40 | public function setTitle(string $title): self |
||
41 | { |
||
42 | $this->title = $title; |
||
43 | |||
44 | return $this; |
||
45 | } |
||
46 | |||
47 | public function getEmail(): string |
||
48 | { |
||
49 | return $this->email; |
||
50 | } |
||
51 | |||
52 | public function setEmail(string $email): self |
||
57 | } |
||
58 | } |
||
59 |