1 | <?php |
||
11 | class XlsHeaderFooterWrapper extends AbstractWrapper |
||
12 | { |
||
13 | /** |
||
14 | * @var array |
||
15 | */ |
||
16 | protected $context; |
||
17 | /** |
||
18 | * @var Twig_Environment |
||
19 | */ |
||
20 | protected $environment; |
||
21 | /** |
||
22 | * @var XlsSheetWrapper |
||
23 | */ |
||
24 | protected $sheetWrapper; |
||
25 | |||
26 | /** |
||
27 | * @var array |
||
28 | */ |
||
29 | protected $alignmentAttributes; |
||
30 | |||
31 | /** |
||
32 | * @var \PHPExcel_Worksheet_HeaderFooter |
||
33 | */ |
||
34 | protected $object; |
||
35 | /** |
||
36 | * @var array |
||
37 | */ |
||
38 | protected $attributes; |
||
39 | /** |
||
40 | * @var array |
||
41 | */ |
||
42 | protected $mappings; |
||
43 | |||
44 | /** |
||
45 | * XlsHeaderFooterWrapper constructor. |
||
46 | * @param array $context |
||
47 | * @param Twig_Environment $environment |
||
48 | * @param XlsSheetWrapper $sheetWrapper |
||
49 | */ |
||
50 | public function __construct(array $context, Twig_Environment $environment, XlsSheetWrapper $sheetWrapper) |
||
64 | |||
65 | protected function initializeMappings() |
||
74 | |||
75 | /** |
||
76 | * @param string $type |
||
77 | * @param null|array $properties |
||
78 | * @throws \LogicException |
||
79 | */ |
||
80 | public function start($type, array $properties = null) |
||
101 | |||
102 | public function end() |
||
148 | |||
149 | /** |
||
150 | * @param null|string $type |
||
151 | * @param null|array $properties |
||
152 | * @throws \InvalidArgumentException |
||
153 | */ |
||
154 | public function startAlignment($type = null, array $properties = null) |
||
173 | |||
174 | /** |
||
175 | * @param null|string $value |
||
176 | * @throws \InvalidArgumentException |
||
177 | */ |
||
178 | public function endAlignment($value = null) |
||
202 | |||
203 | // |
||
204 | // Getters/Setters |
||
205 | // |
||
206 | |||
207 | /** |
||
208 | * @return \PHPExcel_Worksheet_HeaderFooter |
||
209 | */ |
||
210 | public function getObject() |
||
214 | |||
215 | /** |
||
216 | * @param \PHPExcel_Worksheet_HeaderFooter $object |
||
217 | */ |
||
218 | public function setObject($object) |
||
222 | |||
223 | /** |
||
224 | * @return array |
||
225 | */ |
||
226 | public function getAttributes() |
||
230 | |||
231 | /** |
||
232 | * @param array $attributes |
||
233 | */ |
||
234 | public function setAttributes($attributes) |
||
238 | |||
239 | /** |
||
240 | * @return array |
||
241 | */ |
||
242 | public function getMappings() |
||
246 | |||
247 | /** |
||
248 | * @param array $mappings |
||
249 | */ |
||
250 | public function setMappings($mappings) |
||
254 | |||
255 | /** |
||
256 | * @return array |
||
257 | */ |
||
258 | public function getAlignmentAttributes() |
||
262 | |||
263 | /** |
||
264 | * @param array $alignmentAttributes |
||
265 | */ |
||
266 | public function setAlignmentAttributes($alignmentAttributes) |
||
270 | } |
||
271 |