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

Tag::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
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