Options   A
last analyzed

Complexity

Total Complexity 10

Size/Duplication

Total Lines 103
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 103
c 0
b 0
f 0
wmc 10
lcom 0
cbo 1
ccs 25
cts 25
cp 1
rs 10

10 Methods

Rating   Name   Duplication   Size   Complexity  
A isStylesheetEnabled() 0 4 1
A setStylesheetEnabled() 0 4 1
A getStylesheetMode() 0 4 1
A setStylesheetMode() 0 4 1
A isHttp2PushEnabled() 0 4 1
A setHttp2PushEnabled() 0 4 1
A isScriptEnabled() 0 4 1
A setScriptEnabled() 0 4 1
A getScriptMode() 0 4 1
A setScriptMode() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Facile\ZFLinkHeadersModule;
6
7
use Zend\Stdlib\AbstractOptions;
8
9
final class Options extends AbstractOptions implements OptionsInterface
10
{
11
    /**
12
     * @var bool
13
     */
14
    private $stylesheetEnabled = false;
15
    /**
16
     * @var string
17
     */
18
    private $stylesheetMode = self::MODE_PRELOAD;
19
    /**
20
     * @var bool
21
     */
22
    private $scriptEnabled = false;
23
    /**
24
     * @var string
25
     */
26
    private $scriptMode = self::MODE_PRELOAD;
27
    /**
28
     * @var bool
29
     */
30
    private $http2PushEnabled = false;
31
32
    /**
33
     * @return bool
34
     */
35 4
    public function isStylesheetEnabled(): bool
36
    {
37 4
        return $this->stylesheetEnabled;
38
    }
39
40
    /**
41
     * @param bool $stylesheetEnabled
42
     */
43 4
    public function setStylesheetEnabled(bool $stylesheetEnabled)
44
    {
45 4
        $this->stylesheetEnabled = $stylesheetEnabled;
46 4
    }
47
48
    /**
49
     * @return string
50
     */
51 4
    public function getStylesheetMode(): string
52
    {
53 4
        return $this->stylesheetMode;
54
    }
55
56
    /**
57
     * @param string $stylesheetMode
58
     */
59 4
    public function setStylesheetMode(string $stylesheetMode)
60
    {
61 4
        $this->stylesheetMode = $stylesheetMode;
62 4
    }
63
64
    /**
65
     * @return bool
66
     */
67 4
    public function isHttp2PushEnabled(): bool
68
    {
69 4
        return $this->http2PushEnabled;
70
    }
71
72
    /**
73
     * @param bool $http2PushEnabled
74
     */
75 4
    public function setHttp2PushEnabled(bool $http2PushEnabled)
76
    {
77 4
        $this->http2PushEnabled = $http2PushEnabled;
78 4
    }
79
80
    /**
81
     * @return bool
82
     */
83 2
    public function isScriptEnabled(): bool
84
    {
85 2
        return $this->scriptEnabled;
86
    }
87
88
    /**
89
     * @param bool $scriptEnabled
90
     */
91 2
    public function setScriptEnabled(bool $scriptEnabled)
92
    {
93 2
        $this->scriptEnabled = $scriptEnabled;
94 2
    }
95
96
    /**
97
     * @return string
98
     */
99 2
    public function getScriptMode(): string
100
    {
101 2
        return $this->scriptMode;
102
    }
103
104
    /**
105
     * @param string $scriptMode
106
     */
107 2
    public function setScriptMode(string $scriptMode)
108
    {
109 2
        $this->scriptMode = $scriptMode;
110 2
    }
111
}
112