1
0
mirror of https://github.com/jupeter/clean-code-php.git synced 2025-09-30 16:09:03 +02:00

Pass $name and $email to parent constructor in EmployeeTaxData

This commit is contained in:
Sergiy Litvinchuk
2017-09-01 12:32:09 +03:00
committed by GitHub
parent 80097dd168
commit a77a62d7ce

View File

@@ -1664,8 +1664,8 @@ class Employee {
class EmployeeTaxData extends Employee {
private $ssn, $salary;
public function __construct($ssn, $salary) {
parent::__construct();
public function __construct($name, $email, $ssn, $salary) {
parent::__construct($name, $email);
$this->ssn = $ssn;
$this->salary = $salary;
}