Created
November 8, 2018 20:12
-
-
Save andrechavesg/59f22571e25f3e8011f766315c6f79f6 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\Common\Collections\ArrayCollection; | |
use Doctrine\ORM\Mapping as ORM; | |
/** | |
* @ORM\Entity | |
*/ | |
class Usuario | |
{ | |
/** | |
* @ORM\Id | |
* @ORM\GeneratedValue | |
* @ORM\Column(type="integer") | |
*/ | |
private $id; | |
/** | |
* @ORM\Column(type="string") | |
*/ | |
private $login; | |
/** | |
* @ORM\Column(type="string") | |
*/ | |
private $senha; | |
/** | |
* @ORM\Column(type="array") | |
*/ | |
private $permissoes; | |
/** | |
* @return mixed | |
*/ | |
public function getId() | |
{ | |
return $this->id; | |
} | |
/** | |
* @param mixed $id | |
* @return Usuario | |
*/ | |
public function setId($id) | |
{ | |
$this->id = $id; | |
return $this; | |
} | |
/** | |
* @return mixed | |
*/ | |
public function getLogin() | |
{ | |
return $this->login; | |
} | |
/** | |
* @param mixed $login | |
* @return Usuario | |
*/ | |
public function setLogin($login) | |
{ | |
$this->login = $login; | |
return $this; | |
} | |
/** | |
* @return mixed | |
*/ | |
public function getSenha() | |
{ | |
return $this->senha; | |
} | |
/** | |
* @param mixed $senha | |
* @return Usuario | |
*/ | |
public function setSenha($senha) | |
{ | |
$this->senha = $senha; | |
return $this; | |
} | |
/** | |
* @return mixed | |
*/ | |
public function getPermissoes() | |
{ | |
return $this->permissoes; | |
} | |
/** | |
* @param mixed $permissoes | |
* @return Usuario | |
*/ | |
public function setPermissoes($permissoes) | |
{ | |
$this->permissoes = $permissoes; | |
return $this; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment