Skip to content

Commit c7b73db

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 3a05e1f commit c7b73db

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
@@ -799,11 +799,15 @@ public function beLenient(): void
799799
$this->bIgnoreExceptions = true;
800800
}
801801

802+
/**
803+
* @internal since 8.8.0
804+
*/
802805
public function getFormatter(): OutputFormatter
803806
{
804807
if ($this->outputFormatter === null) {
805808
$this->outputFormatter = new OutputFormatter($this);
806809
}
810+
807811
return $this->outputFormatter;
808812
}
809813

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)