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:
@@ -1354,9 +1354,9 @@ class Employee
|
|||||||
$this->email = $email;
|
$this->email = $email;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setTaxData(string $ssn, string $salary)
|
public function setTaxData(EmployeeTaxData $taxData)
|
||||||
{
|
{
|
||||||
$this->taxData = new EmployeeTaxData($ssn, $salary);
|
$this->taxData = $taxData;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ...
|
// ...
|
||||||
|
Reference in New Issue
Block a user