Skip to content

Commit 5421a6d

Browse files
authored
[TASK] Mark OutputFormatter as @internal (#896)
This class should only be used for formatting CSS from within this library. It is not intended to be called from outside.
1 parent c2d2bb4 commit 5421a6d

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Please also have a look at our
2121

2222
### Changed
2323

24+
- Mark `OutputFormatter` as `@internal` (#896)
2425
- Make `Selector` a `Renderable` (#1017)
2526
- Mark `Selector::isValid()` as `@internal` (#1037)
2627
- Mark parsing-related methods of most CSS elements as `@internal` (#908)

src/OutputFormat.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -751,11 +751,15 @@ public function beLenient(): void
751751
$this->bIgnoreExceptions = true;
752752
}
753753

754+
/**
755+
* @internal since 8.8.0
756+
*/
754757
public function getFormatter(): OutputFormatter
755758
{
756759
if ($this->outputFormatter === null) {
757760
$this->outputFormatter = new OutputFormatter($this);
758761
}
762+
759763
return $this->outputFormatter;
760764
}
761765

src/OutputFormatter.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
use Sabberworm\CSS\Comment\Commentable;
88
use Sabberworm\CSS\Parsing\OutputException;
99

10+
/**
11+
* @internal since 8.8.0
12+
*/
1013
class OutputFormatter
1114
{
1215
/**

0 commit comments

Comments
 (0)