Option   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 63.64%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 39
c 0
b 0
f 0
rs 10
ccs 7
cts 11
cp 0.6364

4 Methods

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