IdentityTrait::setId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace SDIS62\Core\Common\Entity;
4
5
trait IdentityTrait
6
{
7
    /**
8
     * Identifiant
9
     *
10
     * @var mixed
11
     */
12
    protected $id;
13
14
    /**
15
     * Get the value of Identifiant
16
     *
17
     * @return mixed
18
     */
19
    public function getId()
20
    {
21
        return $this->id;
22
    }
23
24
    /**
25
     * Set the value of Identifiant
26
     *
27
     * @param mixed id
28
     *
29
     * @return self
30
     */
31
    public function setId($value)
32
    {
33
        $this->id = $value;
34
35
        return $this;
36
    }
37
}
38