1 | <?php |
||
21 | class Section implements SectionInterface |
||
22 | { |
||
23 | use TranslatableTrait { |
||
24 | __construct as private initializeTranslationsCollection; |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * @var null|int |
||
29 | */ |
||
30 | protected $id; |
||
31 | |||
32 | /** |
||
33 | * @var null|string |
||
34 | */ |
||
35 | protected $code; |
||
36 | |||
37 | public function __construct() |
||
41 | |||
42 | /** |
||
43 | * {@inheritdoc} |
||
44 | */ |
||
45 | public function getId(): ?int |
||
49 | |||
50 | /** |
||
51 | * {@inheritdoc} |
||
52 | */ |
||
53 | public function getCode(): ?string |
||
57 | |||
58 | /** |
||
59 | * {@inheritdoc} |
||
60 | */ |
||
61 | public function setCode(?string $code): void |
||
65 | |||
66 | /** |
||
67 | * {@inheritdoc} |
||
68 | */ |
||
69 | public function getName(): ?string |
||
73 | |||
74 | /** |
||
75 | * {@inheritdoc} |
||
76 | */ |
||
77 | public function setName(?string $name): void |
||
81 | |||
82 | /** |
||
83 | * @return TranslationInterface|SectionTranslationInterface |
||
84 | */ |
||
85 | protected function getSectionTranslation(): TranslationInterface |
||
89 | |||
90 | /** |
||
91 | * {@inheritdoc} |
||
92 | */ |
||
93 | protected function createTranslation(): TranslationInterface |
||
97 | } |