Sessione   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 43
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 43
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getTitle() 0 4 1
A getDescription() 0 4 1
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