valign = null; $this->textDirection = null; $this->bgColor = null; $this->borderTopSize = null; $this->borderTopColor = null; $this->borderLeftSize = null; $this->borderLeftColor = null; $this->borderRightSize = null; $this->borderRightColor = null; $this->borderBottomSize = null; $this->borderBottomColor = null; $this->defaultBorderColor = '000000'; } /** * Set style value * * @param string $key * @param mixed $value */ public function setStyleValue($key, $value) { $key = String::removeUnderscorePrefix($key); if ($key == 'borderSize') { $this->setBorderSize($value); } elseif ($key == 'borderColor') { $this->setBorderColor($value); } else { $this->$key = $value; } } /** * Get vertical align */ public function getVAlign() { return $this->valign; } /** * Set vertical align * * @param string $pValue */ public function setVAlign($pValue = null) { $this->valign = $pValue; } /** * Get text direction */ public function getTextDirection() { return $this->textDirection; } /** * Set text direction * * @param string $pValue */ public function setTextDirection($pValue = null) { $this->textDirection = $pValue; } /** * Get background color */ public function getBgColor() { return $this->bgColor; } /** * Set background color * * @param string $pValue */ public function setBgColor($pValue = null) { $this->bgColor = $pValue; } /** * Get default border color */ public function getDefaultBorderColor() { return $this->defaultBorderColor; } /** * Set grid span (colspan) * * @param int $pValue */ public function setGridSpan($pValue = null) { $this->gridSpan = $pValue; } /** * Get grid span (colspan) */ public function getGridSpan() { return $this->gridSpan; } /** * Set vertical merge (rowspan) * * @param string $pValue */ public function setVMerge($pValue = null) { $this->vMerge = $pValue; } /** * Get vertical merge (rowspan) */ public function getVMerge() { return $this->vMerge; } }