コード例 #1
0
ファイル: Employee.php プロジェクト: graniasty/learn
 public function __construct($name, $surname, $age, $salary, $gender = self::GENDER_MALE)
 {
     parent::__construct($name, $surname, $age, $gender);
     $this->salary = $salary;
 }
コード例 #2
0
ファイル: Employee.php プロジェクト: jakublech/szkoleniephp
 public function __construct($name, $surname, $age, $gender, $salary, $commision)
 {
     parent::__construct($name, $surname, $age, $gender);
     $this->setSalary($salary);
     $this->setCommision($commision);
 }