Skip to content

Commit 56428cf

Browse files
committed
Modernize syntax and internal improvement.
1 parent 0935447 commit 56428cf

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

src/SelectboxItem.php

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,11 @@
77

88
final class SelectboxItem
99
{
10-
private int|string $id;
11-
12-
private string $name;
13-
14-
private int|string |null $parentId;
15-
16-
17-
public function __construct(int|string $id, string $name, int|string |null $parentId = null)
18-
{
19-
$this->id = $id;
20-
$this->name = $name;
21-
$this->parentId = $parentId;
10+
public function __construct(
11+
private int|string $id,
12+
private string $name,
13+
private int|string |null $parentId = null
14+
) {
2215
}
2316

2417

0 commit comments

Comments
 (0)