Category::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
 * Category
10
 *
11
 * @package Realshadow\Redtube\Entities
12
 * @author Lukáš Homza <[email protected]>
13
 */
14
class Category
15
{
16
17
    /**
18
     * @var string $name
19
     *
20
     * @JMS\XmlValue(cdata=true)
21
     * @JMS\Type("string")
22
     */
23
    private $name;
24
25
    /**
26
     * @return string
27
     */
28
    public function __toString()
29
    {
30
        return $this->name;
31
    }
32
33
    /**
34
     * @return string
35
     */
36
    public function getName()
37
    {
38
        return $this->name;
39
    }
40
41
}
42