Star   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 60
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __toString() 0 4 1
A getUrl() 0 4 1
A getThumb() 0 4 1
A getName() 0 4 1
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