Completed
Push — master ( 265a2d...f9e310 )
by jerome
02:58
created

Settings   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A setDebug() 0 6 1
A getDebug() 0 4 1
1
<?php
2
3
namespace DP\Core\CoreBundle\Settings;
4
5
class Settings
6
{
7
    /**
8
     * @var bool
9
     */
10
    private $debug;
11
12
    /**
13
     * @param bool $debug
14
     */
15
    public function __construct($debug)
16
    {
17
        $this->debug = $debug;
18
    }
19
20
    /**
21
     * @param bool $debug
22
     *
23
     * @return Settings
24
     */
25
    public function setDebug($debug)
26
    {
27
        $this->debug = $debug;
28
29
        return $this;
30
    }
31
32
    /**
33
     * @return bool
34
     */
35
    public function getDebug()
36
    {
37
        return $this->debug;
38
    }
39
}
40