Tag   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 29
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setName() 0 5 1
A getName() 0 3 1
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