1 | <?php |
||
21 | class Page implements PageInterface |
||
22 | { |
||
23 | use ToggleableTrait; |
||
24 | use ProductsAwareTrait; |
||
25 | use SectionableTrait; |
||
26 | use TimestampableTrait; |
||
27 | use TranslatableTrait { |
||
28 | __construct as protected initializeTranslationsCollection; |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * @var int|null |
||
33 | */ |
||
34 | protected $id; |
||
35 | |||
36 | /** |
||
37 | * @var string|null |
||
38 | */ |
||
39 | protected $code; |
||
40 | |||
41 | public function __construct() |
||
49 | |||
50 | /** |
||
51 | * {@inheritdoc} |
||
52 | */ |
||
53 | public function getId(): ?int |
||
57 | |||
58 | /** |
||
59 | * {@inheritdoc} |
||
60 | */ |
||
61 | public function setId(?int $id): void |
||
65 | |||
66 | /** |
||
67 | * {@inheritdoc} |
||
68 | */ |
||
69 | public function getCode(): ?string |
||
73 | |||
74 | /** |
||
75 | * {@inheritdoc} |
||
76 | */ |
||
77 | public function setCode(?string $code): void |
||
81 | |||
82 | /** |
||
83 | * {@inheritdoc} |
||
84 | */ |
||
85 | public function getSlug(): ?string |
||
89 | |||
90 | /** |
||
91 | * {@inheritdoc} |
||
92 | */ |
||
93 | public function setSlug(?string $slug): void |
||
97 | |||
98 | /** |
||
99 | * {@inheritdoc} |
||
100 | */ |
||
101 | public function getMetaKeywords(): ?string |
||
105 | |||
106 | /** |
||
107 | * {@inheritdoc} |
||
108 | */ |
||
109 | public function setMetaKeywords(?string $metaKeywords): void |
||
113 | |||
114 | /** |
||
115 | * {@inheritdoc} |
||
116 | */ |
||
117 | public function getMetaDescription(): ?string |
||
121 | |||
122 | /** |
||
123 | * {@inheritdoc} |
||
124 | */ |
||
125 | public function setMetaDescription(?string $metaDescription): void |
||
129 | |||
130 | /** |
||
131 | * {@inheritdoc} |
||
132 | */ |
||
133 | public function getContent(): ?string |
||
137 | |||
138 | /** |
||
139 | * {@inheritdoc} |
||
140 | */ |
||
141 | public function setContent(?string $content): void |
||
145 | |||
146 | /** |
||
147 | * {@inheritdoc} |
||
148 | */ |
||
149 | public function getName(): ?string |
||
153 | |||
154 | /** |
||
155 | * {@inheritdoc} |
||
156 | */ |
||
157 | public function setName(?string $name): void |
||
161 | |||
162 | /** |
||
163 | * {@inheritdoc} |
||
164 | */ |
||
165 | public function getImage(): ?ImageInterface |
||
169 | |||
170 | /** |
||
171 | * {@inheritdoc} |
||
172 | */ |
||
173 | public function setImage(?ImageInterface $image): void |
||
177 | |||
178 | /** |
||
179 | * @return PageTranslationInterface|TranslationInterface|null |
||
180 | */ |
||
181 | protected function getPageTranslation(): PageTranslationInterface |
||
185 | |||
186 | /** |
||
187 | * {@inheritdoc} |
||
188 | */ |
||
189 | protected function createTranslation(): ?PageTranslationInterface |
||
193 | } |
||
194 |