1 | <?php |
||
24 | class Block implements BlockInterface |
||
25 | { |
||
26 | use ToggleableTrait; |
||
27 | use SectionableTrait; |
||
28 | use ProductsAwareTrait; |
||
29 | use TranslatableTrait { |
||
30 | __construct as protected initializeTranslationsCollection; |
||
31 | } |
||
32 | |||
33 | public function __construct() |
||
39 | |||
40 | /** |
||
41 | * @var null|int |
||
42 | */ |
||
43 | protected $id; |
||
44 | |||
45 | /** |
||
46 | * @var null|string |
||
47 | */ |
||
48 | protected $code; |
||
49 | |||
50 | /** |
||
51 | * @var null|string |
||
52 | */ |
||
53 | protected $type; |
||
54 | |||
55 | /** |
||
56 | * {@inheritdoc} |
||
57 | */ |
||
58 | public function getId(): ?int |
||
62 | |||
63 | /** |
||
64 | * {@inheritdoc} |
||
65 | */ |
||
66 | public function getCode(): ?string |
||
70 | |||
71 | /** |
||
72 | * {@inheritdoc} |
||
73 | */ |
||
74 | public function setCode(?string $code): void |
||
78 | |||
79 | /** |
||
80 | * {@inheritdoc} |
||
81 | */ |
||
82 | public function getType(): ?string |
||
86 | |||
87 | /** |
||
88 | * {@inheritdoc} |
||
89 | */ |
||
90 | public function setType(?string $type): void |
||
94 | |||
95 | /** |
||
96 | * {@inheritdoc} |
||
97 | */ |
||
98 | public function getName(): ?string |
||
102 | |||
103 | /** |
||
104 | * {@inheritdoc} |
||
105 | */ |
||
106 | public function setName(?string $name): void |
||
110 | |||
111 | /** |
||
112 | * {@inheritdoc} |
||
113 | */ |
||
114 | public function getContent(): ?string |
||
118 | |||
119 | /** |
||
120 | * {@inheritdoc} |
||
121 | */ |
||
122 | public function setContent(?string $content): void |
||
126 | |||
127 | /** |
||
128 | * {@inheritdoc} |
||
129 | */ |
||
130 | public function getImage(): ?ImageInterface |
||
134 | |||
135 | /** |
||
136 | * {@inheritdoc} |
||
137 | */ |
||
138 | public function setImage(?ImageInterface $image): void |
||
142 | |||
143 | /** |
||
144 | * {@inheritdoc} |
||
145 | */ |
||
146 | public function getLink(): ?string |
||
150 | |||
151 | /** |
||
152 | * {@inheritdoc} |
||
153 | */ |
||
154 | public function setLink(?string $link): void |
||
158 | |||
159 | /** |
||
160 | * @return BlockTranslationInterface|TranslationInterface |
||
161 | */ |
||
162 | protected function getBlockTranslation(): TranslationInterface |
||
166 | |||
167 | /** |
||
168 | * {@inheritdoc} |
||
169 | */ |
||
170 | protected function createTranslation(): BlockTranslation |
||
174 | } |
||
175 |