1 | <?php |
||
5 | class Photo |
||
6 | { |
||
7 | /** |
||
8 | * @var string |
||
9 | */ |
||
10 | private $reference; |
||
11 | |||
12 | /** |
||
13 | * @var int |
||
14 | */ |
||
15 | private $width; |
||
16 | |||
17 | /** |
||
18 | * @var int |
||
19 | */ |
||
20 | private $height; |
||
21 | |||
22 | /** |
||
23 | * @param string $reference |
||
24 | * @param int $width |
||
25 | * @param int $height |
||
26 | */ |
||
27 | public function __construct($reference, $width, $height) |
||
33 | |||
34 | /** |
||
35 | * @return string |
||
36 | */ |
||
37 | public function getReference() |
||
41 | |||
42 | /** |
||
43 | * @return int |
||
44 | */ |
||
45 | public function getWidth() |
||
49 | |||
50 | /** |
||
51 | * @return int |
||
52 | */ |
||
53 | public function getHeight() |
||
57 | } |
||
58 |