Guest User

Untitled

a guest
Dec 22nd, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.58 KB | None | 0 0
  1. <?php
  2.  
  3.     require 'Pessoa.php';
  4.  
  5.     class Funcrionario extends Pessoa{
  6.  
  7.         private $setor;
  8.         private $trabalhando;
  9.  
  10.         public function mudarTrabalho(){
  11.             $this->setTrabalhando = false;
  12.         }
  13.  
  14.         public function getSetor(){
  15.             return $this->setor;
  16.         }
  17.  
  18.         public function setSetor($setor){
  19.             $this->setor = $setor;
  20.         }
  21.  
  22.         public function getTrabalhando(){
  23.             return $this->trabalhando;
  24.         }
  25.  
  26.         public function setTrabalhando($trabalhando){
  27.             $this->trabalhando = $trabalhando;
  28.         }
  29.  
  30.         public function __construct($trabalhando){
  31.             $this->setTrabalhando = true;
  32.         }
  33.     }
Add Comment
Please, Sign In to add comment