1 | <?php |
||
13 | class Style |
||
14 | { |
||
15 | /** |
||
16 | * @var int |
||
17 | */ |
||
18 | private $size = 11; |
||
19 | |||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | private $color = '000000'; |
||
24 | |||
25 | /** |
||
26 | * @var string |
||
27 | */ |
||
28 | private $name = 'Calibri'; |
||
29 | |||
30 | /** |
||
31 | * @var string |
||
32 | */ |
||
33 | private $bold; |
||
34 | |||
35 | /** |
||
36 | * @var string |
||
37 | */ |
||
38 | private $italic; |
||
39 | |||
40 | /** |
||
41 | * @var string |
||
42 | */ |
||
43 | private $underline; |
||
44 | |||
45 | /** |
||
46 | * @var string |
||
47 | */ |
||
48 | private $fill; |
||
49 | |||
50 | /** |
||
51 | * @return string |
||
52 | */ |
||
53 | public function getFontXml() |
||
59 | |||
60 | /** |
||
61 | * @return string |
||
62 | */ |
||
63 | public function getFillXml() |
||
70 | |||
71 | /** |
||
72 | * Set font size. |
||
73 | * |
||
74 | * @param int $size |
||
75 | * @return Style |
||
76 | */ |
||
77 | public function size($size) |
||
82 | |||
83 | /** |
||
84 | * Set font color. |
||
85 | * |
||
86 | * @param string $color |
||
87 | * @return Style |
||
88 | */ |
||
89 | public function color($color) |
||
94 | |||
95 | /** |
||
96 | * Set font name. |
||
97 | * |
||
98 | * @param string $name |
||
99 | * @return Style |
||
100 | */ |
||
101 | public function name($name) |
||
106 | |||
107 | /** |
||
108 | * Make font bold. |
||
109 | * |
||
110 | * @return Style |
||
111 | */ |
||
112 | public function bold() |
||
117 | |||
118 | /** |
||
119 | * Make font italic. |
||
120 | * |
||
121 | * @return Style |
||
122 | */ |
||
123 | public function italic() |
||
128 | |||
129 | /** |
||
130 | * Underline the font text. |
||
131 | * |
||
132 | * @return Style |
||
133 | */ |
||
134 | public function underline() |
||
139 | |||
140 | /** |
||
141 | * Set the cell fill/background color. |
||
142 | * |
||
143 | * @param string $fill |
||
144 | * @return Style |
||
145 | */ |
||
146 | public function fill($fill) |
||
151 | } |
||
152 |