1 | <?php |
||
22 | class Theme extends BaseTheme implements ThemeInterface |
||
23 | { |
||
24 | /** |
||
25 | * @var array |
||
26 | */ |
||
27 | 101 | protected $config; |
|
28 | |||
29 | 101 | /** |
|
30 | 101 | * @var \SplFileInfo |
|
31 | */ |
||
32 | protected $logo; |
||
33 | 101 | ||
34 | 101 | /** |
|
35 | * @var string |
||
36 | */ |
||
37 | protected $logoPath; |
||
38 | |||
39 | 7 | /** |
|
40 | * @var array |
||
41 | 7 | */ |
|
42 | 7 | protected $generatedData = [ |
|
43 | 'routes' => [], |
||
44 | 'menus' => [], |
||
45 | 'contentLists' => [], |
||
46 | ]; |
||
47 | |||
48 | /** |
||
49 | * @var array |
||
50 | */ |
||
51 | protected $settings = []; |
||
52 | |||
53 | /** |
||
54 | * Theme constructor. |
||
55 | * |
||
56 | * @param string $name |
||
57 | * @param string $path |
||
58 | */ |
||
59 | public function __construct($name, $path) |
||
66 | |||
67 | /** |
||
68 | * {@inheritdoc} |
||
69 | */ |
||
70 | public function setName($name) |
||
74 | |||
75 | /** |
||
76 | * {@inheritdoc} |
||
77 | */ |
||
78 | public function getDefaultTemplates(): array |
||
82 | |||
83 | /** |
||
84 | * {@inheritdoc} |
||
85 | */ |
||
86 | public function getRoutes(): array |
||
90 | |||
91 | /** |
||
92 | * {@inheritdoc} |
||
93 | */ |
||
94 | public function getMenus(): array |
||
98 | |||
99 | /** |
||
100 | * {@inheritdoc} |
||
101 | */ |
||
102 | public function getContentLists(): array |
||
106 | |||
107 | /** |
||
108 | * {@inheritdoc} |
||
109 | */ |
||
110 | public function getLogo(): ?\SplFileInfo |
||
114 | |||
115 | /** |
||
116 | * {@inheritdoc} |
||
117 | */ |
||
118 | public function setLogo(?\SplFileInfo $file): void |
||
122 | |||
123 | /** |
||
124 | * {@inheritdoc} |
||
125 | */ |
||
126 | public function getSettings(): array |
||
130 | |||
131 | /** |
||
132 | * {@inheritdoc} |
||
133 | */ |
||
134 | public function setSettings(array $settings): void |
||
138 | |||
139 | /** |
||
140 | * {@inheritdoc} |
||
141 | */ |
||
142 | public function getLogoPath(): ?string |
||
146 | |||
147 | /** |
||
148 | * {@inheritdoc} |
||
149 | */ |
||
150 | public function setLogoPath(?string $path): void |
||
154 | |||
155 | /** |
||
156 | * {@inheritdoc} |
||
157 | */ |
||
158 | public function hasLogo(): bool |
||
162 | |||
163 | public function setGeneratedData(array $generatedData): void |
||
167 | |||
168 | /** |
||
169 | * {@inheritdoc} |
||
170 | */ |
||
171 | public function serialize(): string |
||
187 | |||
188 | /** |
||
189 | * {@inheritdoc} |
||
190 | */ |
||
191 | public function unserialize($serialized): void |
||
207 | } |
||
208 |