PluginProbe
Photonic Gallery & Lightbox for Flickr, SmugMug & Others / 3.37
Photonic Gallery & Lightbox for Flickr, SmugMug & Others v3.37
3.37 3.36 3.35 3.34 3.33 2.19 2.20 2.21 2.22 2.23 2.24 2.25 2.26 2.27 2.28 2.29 2.30 2.31 2.32 2.33 2.34 2.40 2.41 2.42 2.43 All 142 releases
← All changes | Components/Single_Photo.php +6 -6 3.33 → 3.37 View file →
@@ -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 }