diff --git a/README.md b/README.md index c707d32..9f7d80a 100644 --- a/README.md +++ b/README.md @@ -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; } // ...