Skip to content

Instantly share code, notes, and snippets.

@andrechavesg
Created November 8, 2018 20:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrechavesg/59f22571e25f3e8011f766315c6f79f6 to your computer and use it in GitHub Desktop.
Save andrechavesg/59f22571e25f3e8011f766315c6f79f6 to your computer and use it in GitHub Desktop.
<?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