| Total Complexity | 10 |
| Total Lines | 56 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 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 |
||
| 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 |
||
| 45 | } |
||
| 46 | |||
| 47 | public function setDebug(bool $flag): void |
||
| 50 | } |
||
| 51 | |||
| 52 | public function isDebug(): bool |
||
| 53 | { |
||
| 54 | return $this->debug; |
||
| 55 | } |
||
| 56 | |||
| 57 | public function setCombine(bool $flag): void |
||
| 60 | } |
||
| 61 | |||
| 62 | public function isCombine(): bool |
||
| 63 | { |
||
| 64 | return $this->combine; |
||
| 67 |