Sessione::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
3
namespace BitPrepared\Bundle\FormazioneBundle\Domain\ValueObject;
4
5
/**
6
 * Sessione generica utilizzabile in un campo
7
 */
8
final class Sessione
9
{
10
    use SessioneTrait;
11
12
    /**
13
     * titolo della sessione
14
     *
15
     * @var string
16
     */
17
    private $title;
18
19
    /**
20
     * Descrizione completa della sessione
21
     *
22
     * @var string
23
     */
24
    private $description;
25
26
    /**
27
     * costruttore
28
     */
29
    final public function __construct($title, $description = null)
0 ignored issues
show
Coding Style introduced by
Unnecessary FINAL modifier in FINAL class
Loading history...
30
    {
31
        $this->title = $title;
32
        $this->description = $description;
33
    }
34
35
    /**
36
     * @return string
37
     */
38
    final public function getTitle()
0 ignored issues
show
Coding Style introduced by
Unnecessary FINAL modifier in FINAL class
Loading history...
39
    {
40
        return $this->title;
41
    }
42
43
    /**
44
     * @return string
45
     */
46
    final public function getDescription()
0 ignored issues
show
Coding Style introduced by
Unnecessary FINAL modifier in FINAL class
Loading history...
47
    {
48
        return $this->description;
49
    }
50
}
51