From f9209e0a8240e297a5707d00904827d17a7d2199 Mon Sep 17 00:00:00 2001 From: willkensonh Date: Fri, 12 Oct 2018 16:58:48 +1100 Subject: [PATCH] bugfix for number format --- src/Spout/Common/Entity/Style/NumberFormat.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/Spout/Common/Entity/Style/NumberFormat.php b/src/Spout/Common/Entity/Style/NumberFormat.php index fe82032..33a167d 100644 --- a/src/Spout/Common/Entity/Style/NumberFormat.php +++ b/src/Spout/Common/Entity/Style/NumberFormat.php @@ -27,7 +27,7 @@ class NumberFormat private $currencySymbol; - private $commas; + private $commas = true; public function __construct(int $type = null) { @@ -46,6 +46,16 @@ class NumberFormat return $this; } + /** + * @param bool $commas + * @return NumberFormat + */ + public function setCommas($commas) + { + $this->commas = $commas; + return $this; + } + /** * @return int|null */