1 | <?php |
||
9 | abstract class Image implements ImageDemand |
||
10 | { |
||
11 | /** |
||
12 | * @var mixed |
||
13 | */ |
||
14 | private $width; |
||
15 | |||
16 | /** |
||
17 | * @var mixed |
||
18 | */ |
||
19 | private $height; |
||
20 | |||
21 | /** |
||
22 | * @var mixed |
||
23 | */ |
||
24 | private $returnObject; |
||
25 | |||
26 | /** |
||
27 | * Image constructor. |
||
28 | * |
||
29 | * @param mixed $width |
||
30 | * @param mixed $height |
||
31 | * @param mixed $returnObject |
||
32 | */ |
||
33 | public function __construct($width, $height, $returnObject = null) |
||
39 | |||
40 | final public function getWidth(): ?int |
||
44 | |||
45 | final public function getHeight(): ?int |
||
49 | |||
50 | final public function returnObject(): bool |
||
54 | |||
55 | /** |
||
56 | * @param mixed $value |
||
57 | */ |
||
58 | final public function isValueConsideredNull($value): bool |
||
62 | } |
||
63 |