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

AbstractStrategy   A

Complexity

Total Complexity 10

Size/Duplication

Total Lines 57
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 10
eloc 16
dl 0
loc 57
rs 10
c 0
b 0
f 0

10 Methods

Rating   Name   Duplication   Size   Complexity  
A setBaseUrl() 0 3 1
A getBasePath() 0 3 1
A setDebug() 0 3 1
A setBasePath() 0 3 1
A setCombine() 0 3 1
A setRenderer() 0 3 1
A getRenderer() 0 3 1
A getBaseUrl() 0 3 1
A isDebug() 0 3 1
A isCombine() 0 3 1
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