chore: Аннотации к типам
This commit is contained in:
parent
89913de4fe
commit
386a927254
6 changed files with 63 additions and 27 deletions
|
|
@ -10,7 +10,9 @@ use XMLWriter,
|
|||
|
||||
class TableCell
|
||||
{
|
||||
/** @var string|false */
|
||||
public $style = false;
|
||||
/** @var string */
|
||||
public $value;
|
||||
public $merge = false;
|
||||
|
||||
|
|
@ -25,17 +27,19 @@ class TableCell
|
|||
*/
|
||||
class TableRow
|
||||
{
|
||||
/** @var string|false */
|
||||
public $style = false;
|
||||
/** @var TableCell[] */
|
||||
public $cells = [];
|
||||
/** @var int|false */
|
||||
public $height = false;
|
||||
|
||||
function setCell($y, $value)
|
||||
function setCell($y, $value): void
|
||||
{
|
||||
$this->cells[$y] = new TableCell($value);
|
||||
}
|
||||
|
||||
function setCellStyle($y, $name)
|
||||
function setCellStyle($y, $name): void
|
||||
{
|
||||
$this->cells[$y]->style = $name;
|
||||
}
|
||||
|
|
@ -283,7 +287,7 @@ class Table
|
|||
}
|
||||
|
||||
if ($this->rows[$i]->height) {
|
||||
$doc->writeAttribute('ss:Height', $this->rows[$i]->height);
|
||||
$doc->writeAttribute('ss:Height', (string)$this->rows[$i]->height);
|
||||
}
|
||||
/** @var TableRow $nrow */
|
||||
$nrow = $this->rows[$i];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue