| 1 | <?php | ||
| 12 | class Fill | ||
| 13 | { | ||
| 14 | /** | ||
| 15 | * @var string | ||
| 16 | */ | ||
| 17 | private $color; | ||
| 18 | |||
| 19 | /** | ||
| 20 | * @var string | ||
| 21 | */ | ||
| 22 | private $pattern = 'none'; | ||
| 23 | |||
| 24 | /** | ||
| 25 | * @var Style | ||
| 26 | */ | ||
| 27 | private $style; | ||
| 28 | |||
| 29 | /** | ||
| 30 | * Font constructor. | ||
| 31 | * | ||
| 32 | * @param Style $style | ||
| 33 | */ | ||
| 34 | 3 | public function __construct(Style $style) | |
| 38 | |||
| 39 | /** | ||
| 40 | * @return Style | ||
| 41 | */ | ||
| 42 | 2 | public function style() | |
| 46 | |||
| 47 | /** | ||
| 48 | * @param string $color | ||
| 49 | * @return Fill | ||
| 50 | */ | ||
| 51 | public function setColor($color) | ||
| 57 | |||
| 58 | /** | ||
| 59 | * @param string $pattern | ||
| 60 | * @return Fill | ||
| 61 | */ | ||
| 62 | 2 | public function setPattern($pattern) | |
| 67 | |||
| 68 | /** | ||
| 69 | * @return string | ||
| 70 | */ | ||
| 71 | 2 | public function asXml() | |
| 78 | } | ||
| 79 |