Added support for cell formats when writing Excel files

This commit is contained in:
Alexander Rakushin committed 2019-07-10 08:18:28 +03:00
1 parent a420e3fffa
commit 8a1a088677
4 files changed
+230 -2

No files matched your search

+12
View File
@@ -145,6 +145,18 @@ class StyleBuilder
$this->style->setBackgroundColor($color);
return $this;
}
/**
* Sets a format
*
* @api
* @param string $format Format
* @return StyleBuilder
*/
public function setFormat($format)
{
$this->style->setFormat($format);
return $this;
}
/**
* Returns the configured style. The style is cached and can be reused.