Tag::getName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Mapado\RestClientSdk\Tests\Model\Issue75;
6
7
use Mapado\RestClientSdk\Mapping\Annotations as Rest;
8
9
/**
10
 * @Rest\Entity(key="tags")
11
 */
12
class Tag
13
{
14
    /**
15
     * @Rest\Attribute(name="name", type="string")
16
     */
17
    private $name;
18
19
    /**
20
     * Getter for name
21
     *
22
     * @return string
23
     */
24
    public function getName()
25
    {
26
        return $this->name;
27
    }
28
29
    /**
30
     * Setter for name
31
     *
32
     * @param string $name
33
     *
34
     * @return Tag
35
     */
36
    public function setName($name)
37
    {
38
        $this->name = $name;
39
40
        return $this;
41
    }
42
}
43