valign; } /** * Set vertical align * * @param string $value */ public function setVAlign($value = null) { $this->valign = $value; } /** * Get text direction */ public function getTextDirection() { return $this->textDirection; } /** * Set text direction * * @param string $value */ public function setTextDirection($value = null) { $this->textDirection = $value; } /** * Get background * * @return string */ public function getBgColor() { if (!is_null($this->shading)) { return $this->shading->getFill(); } } /** * Set background * * @param string $value * @return self */ public function setBgColor($value = null) { return $this->setShading(array('fill' => $value)); } /** * Set grid span (colspan) * * @param int $value */ public function setGridSpan($value = null) { $this->gridSpan = $value; } /** * Get grid span (colspan) */ public function getGridSpan() { return $this->gridSpan; } /** * Set vertical merge (rowspan) * * @param string $value */ public function setVMerge($value = null) { $this->vMerge = $value; } /** * Get vertical merge (rowspan) */ public function getVMerge() { return $this->vMerge; } /** * Get shading * * @return \PhpOffice\PhpWord\Style\Shading */ public function getShading() { return $this->shading; } /** * Set shading * * @param array $value * @return self */ public function setShading($value = null) { if (is_array($value)) { if (!$this->shading instanceof Shading) { $this->shading = new Shading(); } $this->shading->setStyleByArray($value); } else { $this->shading = null; } return $this; } /** * Get default border color * * @deprecated 0.10.0 * @codeCoverageIgnore */ public function getDefaultBorderColor() { return self::DEFAULT_BORDER_COLOR; } }