xmlWriter = $xmlWriter; $this->style = $style; } /** * Convert twip value * * @param int|float $value * @param int|float $default * @return int|float */ protected function convertTwip($value, $default = 0) { $unit = Settings::getMeasurementUnit(); if ($unit == Settings::UNIT_TWIP || $value == $default) { return $value; } else { return $value * $unit; } } }