Sinistre::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 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