1 | <?php |
||
22 | class Page |
||
23 | { |
||
24 | use EntityIdTrait; |
||
25 | |||
26 | /** |
||
27 | * @ORM\Column(type="string", length=255) |
||
28 | */ |
||
29 | private $title; |
||
30 | |||
31 | /** |
||
32 | * @ORM\Column(type="string", length=255) |
||
33 | */ |
||
34 | private $description; |
||
35 | |||
36 | /** |
||
37 | * @ORM\Column(type="string", length=255) |
||
38 | */ |
||
39 | private $slug; |
||
40 | |||
41 | /** |
||
42 | * @ORM\Column(type="string", length=2, options={"default":"en"}) |
||
43 | */ |
||
44 | private $locale; |
||
45 | |||
46 | /** |
||
47 | * @ORM\Column(type="text", nullable=true) |
||
48 | */ |
||
49 | private $content; |
||
50 | |||
51 | /** |
||
52 | * @ORM\Column(type="boolean") |
||
53 | */ |
||
54 | private $show_in_menu; |
||
55 | |||
56 | /** |
||
57 | * @ORM\Column(type="boolean") |
||
58 | */ |
||
59 | private $add_contact_form; |
||
60 | |||
61 | /** |
||
62 | * @ORM\Column(type="string", length=255, nullable=true) |
||
63 | * @Assert\Email() |
||
64 | */ |
||
65 | private $contact_email_address; |
||
66 | |||
67 | public function getTitle(): ?string |
||
71 | |||
72 | public function setTitle(string $title): self |
||
78 | |||
79 | public function getDescription(): ?string |
||
83 | |||
84 | public function setDescription(string $description): self |
||
90 | |||
91 | public function getSlug(): ?string |
||
95 | |||
96 | public function setSlug(string $slug): self |
||
102 | |||
103 | public function getContent(): ?string |
||
107 | |||
108 | public function setContent(string $content): self |
||
114 | |||
115 | public function getShowInMenu(): ?bool |
||
119 | |||
120 | public function setShowInMenu(bool $show_in_menu): self |
||
126 | |||
127 | public function getAddContactForm(): ?bool |
||
131 | |||
132 | public function setAddContactForm(bool $add_contact_form): self |
||
138 | |||
139 | public function getContactEmailAddress(): ?string |
||
143 | |||
144 | public function setContactEmailAddress(?string $contact_email_address): self |
||
150 | |||
151 | public function getLocale(): string |
||
155 | |||
156 | public function setLocale(string $locale): self |
||
162 | } |
||
163 |