chore: Аннотации к типам
This commit is contained in:
parent
e2ba6bd46e
commit
e5713e9015
28 changed files with 305 additions and 110 deletions
|
|
@ -26,7 +26,7 @@ class TableCell
|
|||
class TableRow
|
||||
{
|
||||
public $style = false;
|
||||
public $cells = array();
|
||||
public $cells = [];
|
||||
public $height = false;
|
||||
|
||||
function setCell($y, $value)
|
||||
|
|
@ -48,7 +48,7 @@ class Table
|
|||
static $index;
|
||||
private $name;
|
||||
private $style;
|
||||
protected $rows = array();
|
||||
protected $rows = [];
|
||||
|
||||
protected $_splitVertical = false;
|
||||
protected $_splitHorizontal = false;
|
||||
|
|
@ -106,9 +106,9 @@ class Table
|
|||
* @param int $row Номер ряда
|
||||
* @param string $name Имя стиля
|
||||
*/
|
||||
function setRowStyle ($row, $name)
|
||||
function setRowStyle(int $row, $name)
|
||||
{
|
||||
assert(is_numeric($row) && $row > 0);
|
||||
assert($row > 0);
|
||||
|
||||
$this->rows[$row]->style = $name;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue