Thumbnail   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 68
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 68
c 0
b 0
f 0
wmc 4
lcom 0
cbo 0
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getSize() 0 4 1
A getWidth() 0 4 1
A getHeight() 0 4 1
A getSrc() 0 4 1
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