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