Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
vAlign;
}
/**
* Set vertical align.
*
* @param string $value
*
* @return self
*/
public function setVAlign($value = null)
{
VerticalJc::validate($value);
$this->vAlign = $this->setEnumVal($value, VerticalJc::values(), $this->vAlign);
return $this;
}
/**
* Get text direction.
*
* @return string
*/
public function getTextDirection()
{
return $this->textDirection;
}
/**
* Set text direction.
*
* @param string $value
*
* @return self
*/
public function setTextDirection($value = null)
{
$enum = [self::TEXT_DIR_BTLR, self::TEXT_DIR_TBRL];
$this->textDirection = $this->setEnumVal($value, $enum, $this->textDirection);
return $this;
}
/**
* Get background.
*
* @return string
*/
public function getBgColor()
{
if ($this->shading !== null) {
return $this->shading->getFill();
}
return null;
}
/**
* Set background.
*
* @param string $value
*
* @return self
*/
public function setBgColor($value = null)
{
return $this->setShading(['fill' => $value]);
}
/**
* Get grid span (colspan).
*
* @return int
*/
public function getGridSpan()
{
return $this->gridSpan;
}
/**
* Set grid span (colspan).
*
* @param int $value
*
* @return self
*/
public function setGridSpan($value = null)
{
$this->gridSpan = $this->setIntVal($value, $this->gridSpan);
return $this;
}
/**
* Get vertical merge (rowspan).
*
* @return string
*/
public function getVMerge()
{
return $this->vMerge;
}
/**
* Set vertical merge (rowspan).
*
* @param string $value
*
* @return self
*/
public function setVMerge($value = null)
{
$enum = [self::VMERGE_RESTART, self::VMERGE_CONTINUE];
$this->vMerge = $this->setEnumVal($value, $enum, $this->vMerge);
return $this;
}
/**
* Get shading.
*
* @return \PhpOffice\PhpWord\Style\Shading
*/
public function getShading()
{
return $this->shading;
}
/**
* Set shading.
*
* @param mixed $value
*
* @return self
*/
public function setShading($value = null)
{
$this->setObjectVal($value, 'Shading', $this->shading);
return $this;
}
/**
* Get cell width.
*
* @return int
*/
public function getWidth()
{
return $this->width;
}
/**
* Set cell width.
*
* @param int $value
*
* @return self
*/
public function setWidth($value)
{
$this->width = $this->setIntVal($value);
return $this;
}
/**
* Get width unit.
*
* @return string
*/
public function getUnit()
{
return $this->unit;
}
/**
* Set width unit.
*
* @param string $value
*/
public function setUnit($value)
{
$this->unit = $this->setEnumVal($value, [TblWidth::AUTO, TblWidth::PERCENT, TblWidth::TWIP], TblWidth::TWIP);
return $this;
}
}