Model::setId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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