Skip to content

Commit 824df7f

Browse files
authored
Update Department.php
1 parent 2b77455 commit 824df7f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Structural/Composite/Department.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@
77
final class Department implements BudgetedComposite
88
{
99
private SplObjectStorage $dependencies;
10-
private string $name;
1110

12-
public function __construct(string $name)
11+
public function __construct(private string $name)
1312
{
1413
$this->dependencies = new SplObjectStorage();
15-
$this->name = $name;
1614
}
1715

1816
public function calculateBudget(): int

0 commit comments

Comments
 (0)