Options::getStylesheetMode()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 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