Option::getName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
ccs 0
cts 2
cp 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
namespace ArjanSchouten\HtmlMinifier;
4
5
class Option
6
{
7
    private $name;
8
9
    private $description;
10
11
    private $default = true;
12
13 1
    public function __construct($name, $description, $default = true)
14
    {
15 1
        $this->name = $name;
16 1
        $this->description = $description;
17 1
        $this->default = $default;
18 1
    }
19
20
    /**
21
     * @return mixed
22
     */
23
    public function getName()
24
    {
25
        return $this->name;
26
    }
27
28
    /**
29
     * @return mixed
30
     */
31
    public function getDescription()
32
    {
33
        return $this->description;
34
    }
35
36
    /**
37
     * @return bool
38
     */
39 2
    public function isDefault()
40
    {
41 2
        return $this->default;
42
    }
43
}
44