1 | <?php |
||
22 | class FrequentlyAskedQuestion implements FrequentlyAskedQuestionInterface |
||
23 | { |
||
24 | use ToggleableTrait, |
||
25 | TranslatableTrait { |
||
26 | __construct as private initializeTranslationsCollection; |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * @var int |
||
31 | */ |
||
32 | protected $id; |
||
33 | |||
34 | /** |
||
35 | * @var null|string |
||
36 | */ |
||
37 | protected $code; |
||
38 | |||
39 | /** |
||
40 | * @var null|int |
||
41 | */ |
||
42 | protected $position; |
||
43 | |||
44 | public function __construct() |
||
48 | |||
49 | /** |
||
50 | * {@inheritdoc} |
||
51 | */ |
||
52 | public function getId(): ?int |
||
56 | |||
57 | /** |
||
58 | * {@inheritdoc} |
||
59 | */ |
||
60 | public function getCode(): ?string |
||
64 | |||
65 | /** |
||
66 | * {@inheritdoc} |
||
67 | */ |
||
68 | public function setCode(?string $code): void |
||
72 | |||
73 | /** |
||
74 | * {@inheritdoc} |
||
75 | */ |
||
76 | public function getPosition(): ?int |
||
80 | |||
81 | /** |
||
82 | * {@inheritdoc} |
||
83 | */ |
||
84 | public function setPosition(?int $position): void |
||
88 | |||
89 | /** |
||
90 | * {@inheritdoc} |
||
91 | */ |
||
92 | public function getQuestion(): ?string |
||
96 | |||
97 | /** |
||
98 | * {@inheritdoc} |
||
99 | */ |
||
100 | public function setQuestion(?string $question): void |
||
104 | |||
105 | /** |
||
106 | * {@inheritdoc} |
||
107 | */ |
||
108 | public function getAnswer(): ?string |
||
112 | |||
113 | /** |
||
114 | * {@inheritdoc} |
||
115 | */ |
||
116 | public function setAnswer(?string $answer): void |
||
120 | |||
121 | /** |
||
122 | * @return TranslationInterface|FrequentlyAskedQuestionTranslationInterface |
||
123 | */ |
||
124 | protected function getFrequentlyAskedQuestionTranslation(): TranslationInterface |
||
128 | |||
129 | /** |
||
130 | * {@inheritdoc} |
||
131 | */ |
||
132 | protected function createTranslation(): TranslationInterface |
||
136 | } |
||
137 |