diff options
| author | Greg Roach <fisharebest@webtrees.net> | 2018-08-30 09:17:02 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@webtrees.net> | 2018-08-30 09:17:12 +0100 |
| commit | 83cdc021ef3cbd30c7b73b429e75d0d3c95ff416 (patch) | |
| tree | 1353c1d9c8b2848c12cfc88bc807308d5bd68c97 /app/Report/ReportBaseImage.php | |
| parent | c7ff415313b94d2d6d06ec673249f39fae9865e9 (diff) | |
| download | webtrees-83cdc021ef3cbd30c7b73b429e75d0d3c95ff416.tar.gz webtrees-83cdc021ef3cbd30c7b73b429e75d0d3c95ff416.tar.bz2 webtrees-83cdc021ef3cbd30c7b73b429e75d0d3c95ff416.zip | |
Report images - types and phpdoc
Diffstat (limited to 'app/Report/ReportBaseImage.php')
| -rw-r--r-- | app/Report/ReportBaseImage.php | 62 |
1 files changed, 20 insertions, 42 deletions
diff --git a/app/Report/ReportBaseImage.php b/app/Report/ReportBaseImage.php index 04d6563a8c..52c05cea83 100644 --- a/app/Report/ReportBaseImage.php +++ b/app/Report/ReportBaseImage.php @@ -20,61 +20,39 @@ namespace Fisharebest\Webtrees\Report; */ class ReportBaseImage extends ReportBaseElement { - /** - * Filename of the image - * - * @var string - */ + /** @var string Filename of the image */ public $file; - /** - * Height of the image - * - * @var float - */ + + /** @var int Height of the image */ public $height; - /** - * Width of the image - * - * @var float - */ + + /** @var int Width of the image */ public $width; - /** - * X-position (left) of the image - * - * @var float - */ + + /** @var int X-position (left) of the image */ public $x; - /** - * Y-position (top) of the image - * - * @var float - */ + + /** @var int Y-position (top) of the image */ public $y; - /** - * Placement fo the image. L: left, C:center, R:right - * - * @var string - */ - public $align = ''; - /** - * T:same line, N:next line - * - * @var string - */ - public $line = ''; + + /** @var string Placement fo the image. L: left, C:center, R:right (or empty for x/y) */ + public $align; + + /** @var string T:same line, N:next line */ + public $line; /** * Image class function - Base * * @param string $file Filename of the image - * @param float $x X-position (left) of the image - * @param float $y Y-position (top) of the image - * @param float $w Width of the image - * @param float $h Height of the image + * @param int $x X-position (left) of the image + * @param int $y Y-position (top) of the image + * @param int $w Width of the image + * @param int $h Height of the image * @param string $align Placement of the image. L: left, C:center, R:right * @param string $ln T:same line, N:next line */ - public function __construct($file, $x, $y, $w, $h, $align, $ln) + public function __construct(string $file, int $x, int $y, int $w, int $h, string $align, string $ln) { $this->file = $file; $this->width = $w; |
