Photo::getReference()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Arthem\GoogleApi\Domain\Place\VO;
4
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)
28
    {
29
        $this->reference = $reference;
30
        $this->width     = $width;
31
        $this->height    = $height;
32
    }
33
34
    /**
35
     * @return string
36
     */
37
    public function getReference()
38
    {
39
        return $this->reference;
40
    }
41
42
    /**
43
     * @return int
44
     */
45
    public function getWidth()
46
    {
47
        return $this->width;
48
    }
49
50
    /**
51
     * @return int
52
     */
53
    public function getHeight()
54
    {
55
        return $this->height;
56
    }
57
}
58