Thumbnail::getSize()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Realshadow\Redtube\Entities;
4
5
use JMS\Serializer\Annotation as JMS;
6
7
8
/**
9
 * Thumbnail
10
 *
11
 * @package Realshadow\Redtube\Entities
12
 * @author Lukáš Homza <[email protected]>
13
 */
14
class Thumbnail
15
{
16
17
    /**
18
     * @var string $size
19
     *
20
     * @JMS\XmlAttribute()
21
     * @JMS\Type("string")
22
     */
23
    private $size;
24
25
    /**
26
     * @var int $width
27
     *
28
     * @JMS\XmlAttribute()
29
     * @JMS\Type("integer")
30
     */
31
    private $width;
32
33
    /**
34
     * @var int $height
35
     *
36
     * @JMS\XmlAttribute()
37
     * @JMS\Type("integer")
38
     */
39
    private $height;
40
41
    /**
42
     * @var string $src
43
     *
44
     * @JMS\XmlValue()
45
     * @JMS\Type("string")
46
     */
47
    private $src;
48
49
    /**
50
     * @return string
51
     */
52
    public function getSize()
53
    {
54
        return $this->size;
55
    }
56
57
    /**
58
     * @return int
59
     */
60
    public function getWidth()
61
    {
62
        return $this->width;
63
    }
64
65
    /**
66
     * @return int
67
     */
68
    public function getHeight()
69
    {
70
        return $this->height;
71
    }
72
73
    /**
74
     * @return string
75
     */
76
    public function getSrc()
77
    {
78
        return $this->src;
79
    }
80
81
}
82