Options   A
last analyzed

Complexity

Total Complexity 10

Size/Duplication

Total Lines 77
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

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\LaminasLinkHeadersModule;
6
7
use Laminas\Stdlib\AbstractOptions;
8
9
final class Options extends AbstractOptions implements OptionsInterface
10
{
11
    /**
12
     * @var bool
13
     */
14
    private $stylesheetEnabled = false;
15
16
    /**
17
     * @var string
18
     */
19
    private $stylesheetMode = self::MODE_PRELOAD;
20
21
    /**
22
     * @var bool
23
     */
24
    private $scriptEnabled = false;
25
26
    /**
27
     * @var string
28
     */
29
    private $scriptMode = self::MODE_PRELOAD;
30
31
    /**
32
     * @var bool
33
     */
34
    private $http2PushEnabled = false;
35
36 4
    public function isStylesheetEnabled(): bool
37
    {
38 4
        return $this->stylesheetEnabled;
39
    }
40
41 4
    public function setStylesheetEnabled(bool $stylesheetEnabled): void
42
    {
43 4
        $this->stylesheetEnabled = $stylesheetEnabled;
44 4
    }
45
46 4
    public function getStylesheetMode(): string
47
    {
48 4
        return $this->stylesheetMode;
49
    }
50
51 4
    public function setStylesheetMode(string $stylesheetMode): void
52
    {
53 4
        $this->stylesheetMode = $stylesheetMode;
54 4
    }
55
56 4
    public function isHttp2PushEnabled(): bool
57
    {
58 4
        return $this->http2PushEnabled;
59
    }
60
61 4
    public function setHttp2PushEnabled(bool $http2PushEnabled): void
62
    {
63 4
        $this->http2PushEnabled = $http2PushEnabled;
64 4
    }
65
66 2
    public function isScriptEnabled(): bool
67
    {
68 2
        return $this->scriptEnabled;
69
    }
70
71 2
    public function setScriptEnabled(bool $scriptEnabled): void
72
    {
73 2
        $this->scriptEnabled = $scriptEnabled;
74 2
    }
75
76 2
    public function getScriptMode(): string
77
    {
78 2
        return $this->scriptMode;
79
    }
80
81 2
    public function setScriptMode(string $scriptMode): void
82
    {
83 2
        $this->scriptMode = $scriptMode;
84 2
    }
85
}
86