Skip to content

Commit e3bf18c

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 a06211d commit e3bf18c

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
@@ -750,11 +750,15 @@ public function beLenient(): void
750750
$this->bIgnoreExceptions = true;
751751
}
752752

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

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)