style = $style; } /** * Set parent writer. * * @param RTF $writer */ public function setParentWriter($writer): void { $this->parentWriter = $writer; } /** * Get parent writer. * * @return RTF */ public function getParentWriter() { return $this->parentWriter; } /** * Get style. * * @return null|array|string|StyleAbstract */ public function getStyle() { if (!$this->style instanceof StyleAbstract && !is_array($this->style)) { return ''; } return $this->style; } /** * Get value if ... * * @param null|bool $condition * @param string $value * * @return string */ protected function getValueIf($condition, $value) { return $condition == true ? $value : ''; } }