1 | <?php |
||
24 | class Block implements BlockInterface |
||
25 | { |
||
26 | use ToggleableTrait; |
||
27 | use TranslatableTrait { |
||
28 | __construct as protected initializeTranslationsCollection; |
||
29 | } |
||
30 | |||
31 | public function __construct() |
||
35 | |||
36 | /** |
||
37 | * @var null|int |
||
38 | */ |
||
39 | protected $id; |
||
40 | |||
41 | /** |
||
42 | * @var null|string |
||
43 | */ |
||
44 | protected $code; |
||
45 | |||
46 | /** |
||
47 | * @var null|string |
||
48 | */ |
||
49 | protected $type; |
||
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | */ |
||
54 | public function getId(): ?int |
||
58 | |||
59 | /** |
||
60 | * {@inheritdoc} |
||
61 | */ |
||
62 | public function getCode(): ?string |
||
66 | |||
67 | /** |
||
68 | * {@inheritdoc} |
||
69 | */ |
||
70 | public function setCode(?string $code): void |
||
74 | |||
75 | /** |
||
76 | * {@inheritdoc} |
||
77 | */ |
||
78 | public function getType(): ?string |
||
82 | |||
83 | /** |
||
84 | * {@inheritdoc} |
||
85 | */ |
||
86 | public function setType(?string $type): void |
||
90 | |||
91 | /** |
||
92 | * {@inheritdoc} |
||
93 | */ |
||
94 | public function getName(): ?string |
||
98 | |||
99 | /** |
||
100 | * {@inheritdoc} |
||
101 | */ |
||
102 | public function setName(?string $name): void |
||
106 | |||
107 | /** |
||
108 | * {@inheritdoc} |
||
109 | */ |
||
110 | public function getContent(): ?string |
||
114 | |||
115 | /** |
||
116 | * {@inheritdoc} |
||
117 | */ |
||
118 | public function setContent(?string $content): void |
||
122 | |||
123 | /** |
||
124 | * {@inheritdoc} |
||
125 | */ |
||
126 | public function getImage(): ?ImageInterface |
||
130 | |||
131 | /** |
||
132 | * {@inheritdoc} |
||
133 | */ |
||
134 | public function setImage(?ImageInterface $image): void |
||
138 | |||
139 | /** |
||
140 | * {@inheritdoc} |
||
141 | */ |
||
142 | public function getLink(): ?string |
||
146 | |||
147 | /** |
||
148 | * {@inheritdoc} |
||
149 | */ |
||
150 | public function setLink(?string $link): void |
||
154 | |||
155 | /** |
||
156 | * @return BlockTranslationInterface|TranslationInterface |
||
157 | */ |
||
158 | protected function getBlockTranslation(): TranslationInterface |
||
162 | |||
163 | /** |
||
164 | * {@inheritdoc} |
||
165 | */ |
||
166 | protected function createTranslation(): BlockTranslation |
||
170 | } |
||
171 |