<?php
/**
* ClientsType.php
* Created by Stéphane Brun
* Date: 11/05/2018 at 19:21
*/
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="clients_type")
*/
class ClientsType
{
const CLIENT = 4;
const ECOLE_51 = 2;
const NON_51 = 3;
const EMPLOYE = 0;
const COLLECTIVITE = 1;
/**
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @ORM\Column(name="description", type="string", length=255)
*/
protected $description;
/**
* Many ClientsType have Many Users.
*
* @ORM\ManyToMany(targetEntity="SysUsers", mappedBy="clientsTypes")
*/
private $users;
public function __construct()
{
$this->users = new \Doctrine\Common\Collections\ArrayCollection();
}
public function __toString()
{
return $this->getId();
}
/**
* @return mixed
*/
public function getId()
{
return $this->id;
}
/**
* @return mixed
*/
public function getDescription()
{
return $this->description;
}
/**
* @param mixed $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return mixed
*/
public function getUsers()
{
return $this->users;
}
/**
* @param mixed $users
*/
public function setUsers($users)
{
$this->users = $users;
}
}