Sinistre   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 45
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getName() 0 4 1
A setName() 0 6 1
1
<?php
2
3
namespace SDIS62\Core\Ops\Entity;
4
5
use SDIS62\Core\Common\Entity\IdentityTrait;
6
7
class Sinistre
8
{
9
    use IdentityTrait;
10
11
    /**
12
     * Nom du sinistre.
13
     *
14
     * @var string
15
     */
16
    protected $name;
17
18
    /**
19
     * Ajout d'un sinistre.
20
     *
21
     * @param string $name
22
     */
23
    public function __construct($name)
24
    {
25
        $this->name = $name;
26
    }
27
28
    /**
29
     * Get the value of Nom du sinistre.
30
     *
31
     * @return string
32
     */
33
    public function getName()
34
    {
35
        return $this->name;
36
    }
37
38
    /**
39
     * Set the value of Nom du sinistre.
40
     *
41
     * @param string name
42
     *
43
     * @return self
44
     */
45
    public function setName($name)
46
    {
47
        $this->name = $name;
48
49
        return $this;
50
    }
51
}
52