Completed
Push — master ( cc21f4...3eeaf5 )
by Julien
06:41 queued 03:06
created

Model::setId()   A

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
namespace Mapado\RestClientSdk\Tests\Model\JsonLd;
4
5
use Mapado\RestClientSdk\Mapping\Annotations as Rest;
6
7
/**
8
 * Class Model
9
 *
10
 * @author Julien Deniau <[email protected]>
11
 */
12
class Model
13
{
14
    /**
15
     * @Rest\Id
16
     * @Rest\Attribute(name="id", type="string")
17
     */
18
    private $id;
19
20
    /**
21
     * Getter for id
22
     *
23
     * @return string
24
     */
25
    public function getId()
26
    {
27
        return $this->id;
28
    }
29
30
    /**
31
     * Setter for id
32
     *
33
     * @param string $id
34
     *
35
     * @return Model
36
     */
37
    public function setId($id)
38
    {
39
        $this->id = $id;
40
41
        return $this;
42
    }
43
}
44