Passed
Push — master ( d1c5a6...bac8bf )
by Fabian
03:36 queued 12s
created

AbstractStrategy::isCombine()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Fabiang\AsseticBundle\View;
6
7
use Laminas\View\Renderer\RendererInterface as Renderer;
8
9
abstract class AbstractStrategy implements StrategyInterface
10
{
11
12
    protected ?Renderer $renderer = null;
13
    protected ?string $baseUrl  = null;
14
    protected ?string $basePath = null;
15
    protected bool $debug    = false;
16
    protected bool $combine  = true;
17
18
    public function setRenderer(?Renderer $renderer): void
19
    {
20
        $this->renderer = $renderer;
21
    }
22
23
    public function getRenderer(): ?Renderer
24
    {
25
        return $this->renderer;
26
    }
27
28
    public function setBaseUrl(?string $baseUrl): void
29
    {
30
        $this->baseUrl = $baseUrl;
31
    }
32
33
    public function getBaseUrl(): ?string
34
    {
35
        return $this->baseUrl;
36
    }
37
38
    public function setBasePath(?string $basePath): void
39
    {
40
        $this->basePath = $basePath;
41
    }
42
43
    public function getBasePath(): ?string
44
    {
45
        return $this->basePath;
46
    }
47
48
    public function setDebug(bool $flag): void
49
    {
50
        $this->debug = $flag;
51
    }
52
53
    public function isDebug(): bool
54
    {
55
        return $this->debug;
56
    }
57
58
    public function setCombine(bool $flag): void
59
    {
60
        $this->combine = $flag;
61
    }
62
63
    public function isCombine(): bool
64
    {
65
        return $this->combine;
66
    }
67
68
}
69