Skip to content

Commit 8c36d23

Browse files
committed
[TASK] Mark OutputFormatter as @internal
This class should only be used for formatting CSS from within this library. It is not intended to be called from outside.
1 parent d7be021 commit 8c36d23

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
- Mark parsing-related methods of most CSS elements as `@internal` (#908)
2526
- Mark `OutputFormat::nextLevel()` as `@internal` (#901)
2627
- Only allow `string` for some `OutputFormat` properties (#885)

src/OutputFormat.php

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

801+
/**
802+
* @internal since 8.8.0
803+
*/
801804
public function getFormatter(): OutputFormatter
802805
{
803806
if ($this->oFormatter === null) {
804807
$this->oFormatter = new OutputFormatter($this);
805808
}
809+
806810
return $this->oFormatter;
807811
}
808812

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)