Created
March 12, 2018 16:24
-
-
Save andrechavesg/97d902e6b0c87dda198eb0569d71f62d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Entity; | |
use Doctrine\ORM\Mapping as ORM; | |
/** | |
* @ORM\Entity | |
*/ | |
class Projeto | |
{ | |
/** | |
* @ORM\Id | |
* @ORM\GeneratedValue | |
* @ORM\Column(type="integer") | |
*/ | |
private $id; | |
/** | |
* @ORM\Column(type="string") | |
*/ | |
private $nome; | |
/** | |
* @ORM\OneToMany(targetEntity="Funcionario", mappedBy="projeto") | |
*/ | |
private $funcionarios; | |
/** | |
* @ORM\OneToMany(targetEntity="HoraLancada", mappedBy="projeto") | |
*/ | |
private $horasLancadas; | |
/** | |
* @return mixed | |
*/ | |
public function getId() | |
{ | |
return $this->id; | |
} | |
/** | |
* @param mixed $id | |
*/ | |
public function setId($id) | |
{ | |
$this->id = $id; | |
} | |
/** | |
* @return mixed | |
*/ | |
public function getNome() | |
{ | |
return $this->nome; | |
} | |
/** | |
* @param mixed $nome | |
*/ | |
public function setNome($nome) | |
{ | |
$this->nome = $nome; | |
} | |
/** | |
* @return mixed | |
*/ | |
public function getFuncionarios() | |
{ | |
return $this->funcionarios; | |
} | |
/** | |
* @param mixed $funcionarios | |
*/ | |
public function setFuncionarios($funcionarios) | |
{ | |
$this->funcionarios = $funcionarios; | |
} | |
/** | |
* @return mixed | |
*/ | |
public function getHorasLancadas() | |
{ | |
return $this->horasLancadas; | |
} | |
/** | |
* @param mixed $horasLancadas | |
*/ | |
public function setHorasLancadas($horasLancadas) | |
{ | |
$this->horasLancadas = $horasLancadas; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment