Star::getName()   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
 * Star
10
 *
11
 * @package Realshadow\Redtube\Entities
12
 * @author Lukáš Homza <[email protected]>
13
 */
14
class Star
15
{
16
17
    /**
18
     * @var string $url
19
     *
20
     * @JMS\XmlAttribute()
21
     * @JMS\Type("string")
22
     */
23
    private $url;
24
25
    /**
26
     * @var string $thumb
27
     *
28
     * @JMS\XmlAttribute()
29
     * @JMS\Type("string")
30
     */
31
    private $thumb;
32
33
    /**
34
     * @var string $name
35
     *
36
     * @JMS\XmlValue(cdata=true)
37
     * @JMS\Type("string")
38
     */
39
    private $name;
40
41
    /**
42
     * @return string
43
     */
44
    public function __toString()
45
    {
46
        return $this->name;
47
    }
48
49
    /**
50
     * @return string
51
     */
52
    public function getUrl()
53
    {
54
        return $this->url;
55
    }
56
57
    /**
58
     * @return string
59
     */
60
    public function getThumb()
61
    {
62
        return $this->thumb;
63
    }
64
65
    /**
66
     * @return string
67
     */
68
    public function getName()
69
    {
70
        return $this->name;
71
    }
72
73
}
74