Passed
Push — master ( 13c3e7...28eebb )
by Julien
01:28 queued 15s
created

Tag   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 29
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setName() 0 5 1
A getName() 0 3 1
1
<?php
2
3
namespace Mapado\RestClientSdk\Tests\Model\Issue75;
4
5
use Mapado\RestClientSdk\Mapping\Annotations as Rest;
6
7
/**
8
 * @Rest\Entity(key="tags")
9
 */
10
class Tag
11
{
12
    /**
13
     * @Rest\Attribute(name="name", type="string")
14
     */
15
    private $name;
16
17
    /**
18
     * Getter for name
19
     *
20
     * @return string
21
     */
22
    public function getName()
23
    {
24
        return $this->name;
25
    }
26
27
    /**
28
     * Setter for name
29
     *
30
     * @param string $name
31
     *
32
     * @return Tag
33
     */
34
    public function setName($name)
35
    {
36
        $this->name = $name;
37
38
        return $this;
39
    }
40
}
41