Skip to content

Commit f20a6af

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 4322d97 commit f20a6af

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
- Only allow `string` for some `OutputFormat` properties (#885)
2526
- Make all non-private properties `@internal` (#886)
2627
- Use more native type declarations and strict mode

src/OutputFormat.php

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

798+
/**
799+
* @internal since 8.8.0
800+
*/
798801
public function getFormatter(): OutputFormatter
799802
{
800803
if ($this->oFormatter === null) {
801804
$this->oFormatter = new OutputFormatter($this);
802805
}
806+
803807
return $this->oFormatter;
804808
}
805809

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)