Skip to content

Commit c6599cb

Browse files
author
Jack Sheppard
authored
Merge pull request piotrplenik#1 from Shpartko/Shpartko-patch-1
Update Prefer composition over inheritance
2 parents 006f2c4 + 390ff76 commit c6599cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1298,9 +1298,9 @@ class Employee
12981298
$this->email = $email;
12991299
}
13001300

1301-
public function setTaxData(string $ssn, string $salary)
1301+
public function setTaxData(EmployeeTaxData $taxData)
13021302
{
1303-
$this->taxData = new EmployeeTaxData($ssn, $salary);
1303+
$this->taxData = $taxData;
13041304
}
13051305

13061306
// ...

0 commit comments

Comments
 (0)