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

Settings::getDebug()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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