| @@ -14,12 +14,12 @@ | ||
| 14 | 14 | * |
| 15 | 15 | * @package Photonic_Plugin\Components |
| 16 | 16 | */ |
| 17 | 17 | class Single_Photo implements Printable { |
| 18 | - public $src = ''; | |
| 19 | - public $href = ''; | |
| 20 | - public $title = ''; | |
| 21 | - public $caption = ''; | |
| 18 | + public string $src = ''; | |
| 19 | + public string $href = ''; | |
| 20 | + public string $title = ''; | |
| 21 | + public string $caption = ''; | |
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | 24 | * Single_Photo constructor. |
| 25 | 25 | * |
| @@ -27,9 +27,9 @@ | ||
| 27 | 27 | * @param string $href |
| 28 | 28 | * @param string $title |
| 29 | 29 | * @param string $caption |
| 30 | 30 | */ |
| 31 | - public function __construct($src, $href, $title, $caption) { | |
| 31 | + public function __construct(string $src, string $href, string $title, string $caption) { | |
| 32 | 32 | $this->src = $src; |
| 33 | 33 | $this->href = $href; |
| 34 | 34 | $this->title = $title; |
| 35 | 35 | $this->caption = $caption; |
| @@ -34,9 +34,9 @@ | ||
| 34 | 34 | $this->title = $title; |
| 35 | 35 | $this->caption = $caption; |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | - public function html(Base $module, ?Core_Layout $layout = null, $print = false): string { | |
| 38 | + public function html(Base $module, ?Core_Layout $layout, bool $print = false): string { | |
| 39 | 39 | $ret = $layout->generate_single_photo_markup($this, $module); |
| 40 | 40 | if ($print) { |
| 41 | 41 | echo wp_kses($ret, Photonic::$safe_tags); |
| 42 | 42 | } |