File tree Expand file tree Collapse file tree 1 file changed +93
-0
lines changed
Expand file tree Collapse file tree 1 file changed +93
-0
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace Denisok94 \SymfonyExportXlsxBundle \Model ;
4+
5+ use Denisok94 \SymfonyExportXlsxBundle \Model \ExportItemInterface ;
6+
7+ /**
8+ * Class ExportItem (test)
9+ * @package Denisok94\SymfonyExportXlsxBundle\Model
10+ */
11+ class ExportItem implements ExportItemInterface
12+ {
13+ /**
14+ * Название страницы
15+ * @var string
16+ */
17+ public string $ pageName = '' ;
18+
19+ /**
20+ * Массив с данными
21+ * @var array
22+ * ```php
23+ * $item = [
24+ * 'Ivanov' => [x,y],
25+ * '32' => [x,y]
26+ * ];
27+ * ```
28+ */
29+ public array $ pageData = [];
30+
31+ /**
32+ * Заголовки
33+ * @var array
34+ * ```php
35+ * $headers = [
36+ * 'name' => [x,y],,
37+ * 'value' => [x,y],
38+ * ];
39+ * ```
40+ */
41+ public array $ pageHeaders = [];
42+
43+ /**
44+ * {@inheritdoc}
45+ */
46+ public function getPageName (): string
47+ {
48+ return $ this ->pageName ;
49+ }
50+
51+ /**
52+ * {@inheritdoc}
53+ */
54+ public function setPageName (string $ pageName ): self
55+ {
56+ $ this ->pageName = $ pageName ;
57+ return $ this ;
58+ }
59+
60+ /**
61+ * {@inheritdoc}
62+ */
63+ public function getPageData (): array
64+ {
65+ return $ this ->pageData ;
66+ }
67+
68+ /**
69+ * {@inheritdoc}
70+ */
71+ public function setPageData ($ pageData ): self
72+ {
73+ $ this ->pageData = $ pageData ;
74+ return $ this ;
75+ }
76+
77+ /**
78+ * {@inheritdoc}
79+ */
80+ public function getPageHeaders (): array
81+ {
82+ return $ this ->pageHeaders ;
83+ }
84+
85+ /**
86+ * {@inheritdoc}
87+ */
88+ public function setPageHeaders ($ pageHeaders ): self
89+ {
90+ $ this ->pageHeaders = $ pageHeaders ;
91+ return $ this ;
92+ }
93+ }
You can’t perform that action at this time.
0 commit comments