111 lines
1.8 KiB
PHP
Raw Normal View History

<?php
/**
* PHPWord
*
2014-03-27 23:55:06 +07:00
* @link https://github.com/PHPOffice/PHPWord
* @copyright 2014 PHPWord
* @license http://www.gnu.org/licenses/lgpl.txt LGPL
*/
namespace PhpOffice\PhpWord\Style;
/**
* Table row style
*
* @since 0.8.0
*/
class Row extends AbstractStyle
{
/**
* Repeat table row on every new page
*
* @var bool
*/
private $tblHeader = false;
/**
* Table row cannot break across pages
*
* @var bool
*/
private $cantSplit = false;
/**
* Table row exact height
*
* @var bool
*/
private $exactHeight = false;
/**
* Create a new row style
*/
public function __construct()
{
}
2014-03-17 07:26:25 +07:00
/**
* Set tblHeader
*
* @param boolean $value
* @return self
2014-03-17 07:26:25 +07:00
*/
public function setTblHeader($value = false)
{
$this->tblHeader = $this->setBoolVal($value, $this->tblHeader);
}
2014-03-17 07:26:25 +07:00
/**
* Get tblHeader
*
* @return boolean
*/
public function getTblHeader()
{
return $this->tblHeader;
}
2014-03-17 07:26:25 +07:00
/**
* Set cantSplit
*
* @param boolean $value
* @return self
2014-03-17 07:26:25 +07:00
*/
public function setCantSplit($value = false)
{
$this->cantSplit = $this->setBoolVal($value, $this->cantSplit);
}
2014-03-17 07:26:25 +07:00
/**
* Get cantSplit
*
* @return boolean
*/
public function getCantSplit()
{
return $this->cantSplit;
}
/**
* Set exactHeight
*
* @param bool $value
* @return self
*/
public function setExactHeight($value = false)
{
$this->exactHeight = $this->setBoolVal($value, $this->exactHeight);
return $this;
}
/**
* Get exactHeight
*
* @return boolean
*/
public function getExactHeight()
{
return $this->exactHeight;
}
}