IdentityTrait   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
c 1
b 0
f 1
lcom 0
cbo 0
dl 0
loc 33
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A setId() 0 6 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