public function render() { if ($this->dual == true) { echo parent::render() . ", i cobra" . $this->salary; } else { parent::render(); } }
public function render() { $this->type = "Professor"; /* * fa referencia a una classe pare */ parent::render(); }
/** * Print the student and his salary. */ public function render() { $this->type = "Estudiant"; if ($this->dual) { parent::render() . " i cobra " . $this->salary; } else { parent::render(); } }
public function render() { $this->type = "student"; if ($this->dual) { parent::render() . $this->getGivenName() . "and her salary is" . $this->salary; } else { parent::render() . $this->getGivenName(); } }
/** * Imprimim el nom del estudiant. */ public function render() { $this->type = "estudiant"; $this->isWorker = $this->dual; parent::render(); }
public function render() { $this->type = "Profesor" . "i cobra" . $this->salary; parent::render(); }
public function render() { $this->type = "teacher"; parent::render() . "and her salary is" . $this->salary; }
/** * Function render */ public function render() { $this->type = "professor"; parent::render(); }