Skip to content

Commit 37ceedd

Browse files
committed
Change style builder
1 parent fcebadd commit 37ceedd

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

src/Compiler.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -866,6 +866,11 @@ public function disableStyleInclude(): Compiler
866866
return $this;
867867
}
868868

869+
public function setStyleBlockOutputType(int $outputType): void
870+
{
871+
$this->styleBuilder->setOutputType($outputType);
872+
}
873+
869874
/**
870875
* @param mixed $value
871876
*/

src/Utils/StyleBuilder.php

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111

1212
class StyleBuilder
1313
{
14-
private const STYLE_NO = 0;
15-
private const STYLE_SCOPED = 1;
16-
private const STYLE = 2;
17-
private const STYLE_ALL = 3;
14+
public const STYLE_NO = 0;
15+
public const STYLE_SCOPED = 1;
16+
public const STYLE = 2;
17+
public const STYLE_ALL = 3;
1818

1919
/**
2020
* @var ScssCompiler|null
@@ -53,6 +53,11 @@ public function __construct()
5353
$this->hasScoped = false;
5454
}
5555

56+
public function setOutputType(int $outputType): void
57+
{
58+
$this->outputType = $outputType;
59+
}
60+
5661
/**
5762
* @param DOMElement|null $styleElement
5863
*/

0 commit comments

Comments
 (0)