. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Report; abstract class ReportBaseCell extends ReportBaseElement { protected string $url = ''; public function __construct( protected float $width, // 0 uses available space to the right margin protected float $height, protected string $border, // '': none, 1: all, [LRTB]: combination of left, right, top, bottom protected string $align, // left/center/right/justify protected string $bgcolor, protected string $styleName, protected int $newline, // 0: to the right (default) 1: to the beginning of the next line 2: below protected float $top, protected float $left, protected bool $fill, // transparent background, 1: solid background protected int $stretch, // 0: disabled (default), 1: horizontal scaling if necessary 2: horizontal scaling 3: character spacing if necessary 4 = character spacing protected string $bocolor, // Border color protected string $tcolor, // Text color protected bool $reseth ) { } /** * @param HtmlRenderer|PdfRenderer $renderer */ public function getHeight($renderer): float { return $this->height; } public function setUrl(string $url): void { $this->url = $url; } /** * Get the cell width * * @param HtmlRenderer|PdfRenderer $renderer * * @return array{0:float,1:int,2:float} */ public function getWidth($renderer): array { return [$this->width, 1, $this->height]; } }