Category   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 28
c 0
b 0
f 0
wmc 2
lcom 0
cbo 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __toString() 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
 * 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