AbstractStrategy::getBaseUrl()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 0
cts 1
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
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
    protected ?Renderer $renderer = null;
12
    protected ?string $baseUrl    = null;
13
    protected ?string $basePath   = null;
14
    protected bool $debug         = false;
15
    protected bool $combine       = true;
16
17
    public function setRenderer(?Renderer $renderer): void
18
    {
19
        $this->renderer = $renderer;
20
    }
21
22
    public function getRenderer(): ?Renderer
23
    {
24
        return $this->renderer;
25
    }
26
27
    public function setBaseUrl(?string $baseUrl): void
28
    {
29
        $this->baseUrl = $baseUrl;
30
    }
31
32
    public function getBaseUrl(): ?string
33
    {
34
        return $this->baseUrl;
35
    }
36
37
    public function setBasePath(?string $basePath): void
38
    {
39
        $this->basePath = $basePath;
40
    }
41
42
    public function getBasePath(): ?string
43
    {
44
        return $this->basePath;
45
    }
46
47
    public function setDebug(bool $flag): void
48
    {
49
        $this->debug = $flag;
50
    }
51
52
    public function isDebug(): bool
53
    {
54
        return $this->debug;
55
    }
56
57
    public function setCombine(bool $flag): void
58
    {
59
        $this->combine = $flag;
60
    }
61
62
    public function isCombine(): bool
63
    {
64
        return $this->combine;
65
    }
66
}
67