Skip to content

Commit c00ff51

Browse files
committed
improve: Extensibility
1 parent d78b567 commit c00ff51

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Cdata.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ class Cdata implements Buildable
1212
{
1313
use BuildableImp;
1414

15-
public static function create(string $content): Cdata
15+
public static function create(string $content): static
1616
{
1717
return new static($content);
1818
}
1919

20-
final public function __construct(private string $content)
20+
final private function __construct(private string $content)
2121
{
2222
}
2323

src/Comment.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ class Comment implements Buildable
1212
{
1313
use BuildableImp;
1414

15-
public static function create(string $content): Comment
15+
public static function create(string $content): static
1616
{
1717
return new static($content);
1818
}
1919

20-
final public function __construct(private string $content)
20+
final private function __construct(private string $content)
2121
{
2222
}
2323

0 commit comments

Comments
 (0)