<?php
declare(strict_types=1);
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Role
*
* @ORM\Table(name="role", uniqueConstraints={@ORM\UniqueConstraint(name="UNIQ_B63E2EC757698A6A", columns={"role"})})
* @ORM\Entity
*/
class Role
{
public const ROLE_ADMIN = 1;
public const ROLE_USER = 2;
public const ROLE_UPDATE = 3;
public const ROLE_EX_UPDATE = 4;
public const ROLE_SALES = 5;
public const ROLE_PM = 6;
public const ROLE_EDM = 9;
public const ROLE_EPA = 10;
/**
* @var int
*
* @ORM\Column(name="id", type="smallint", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="name", type="string", length=40, nullable=false)
*/
private $name;
/**
* @var string
*
* @ORM\Column(name="role", type="string", length=20, nullable=false)
*/
private $role;
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
public function getRole(): ?string
{
return $this->role;
}
public function setRole(string $role): self
{
$this->role = $role;
return $this;
}
}