1
0
mirror of https://github.com/jupeter/clean-code-php.git synced 2025-09-25 21:49:04 +02:00

Merge pull request #1 from Shpartko/Shpartko-patch-1

Update Prefer composition over inheritance
This commit is contained in:
Jack Sheppard
2020-03-11 13:33:46 +01:00
committed by GitHub

View File

@@ -1298,9 +1298,9 @@ class Employee
$this->email = $email;
}
public function setTaxData(string $ssn, string $salary)
public function setTaxData(EmployeeTaxData $taxData)
{
$this->taxData = new EmployeeTaxData($ssn, $salary);
$this->taxData = $taxData;
}
// ...