1
0
mirror of https://github.com/jupeter/clean-code-php.git synced 2025-09-25 05:31:29 +02:00

Merge pull request #174 from php-rock/master

Fix example for Prefer composition over inheritance
This commit is contained in:
Tomas Votruba
2020-06-23 11:42:36 +02:00
committed by GitHub

View File

@@ -1354,9 +1354,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;
}
// ...