<?php
/**
* Created by PhpStorm.
* User: fmartinbrossat
* Date: 2018-09-13
* Time: 13:09
*/
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="imprimante_type")
*/
class ImprimanteType
{
const TYPE_ETIQUETTE = 3;
const TYPE_LETTRE = 2;
const TYPE_TICKET = 1;
/**
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @ORM\OneToMany(targetEntity="App\Entity\Imprimante", mappedBy="type")
*/
protected $imprimantes;
/**
* @ORM\Column(name="nom", type="string", length=160, nullable=true)
*/
protected $nom;
/**
* @return mixed
*/
public function getId()
{
return $this->id;
}
/**
* @param mixed $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return mixed
*/
public function getImprimantes()
{
return $this->imprimantes;
}
/**
* @param mixed $imprimantes
*/
public function setImprimantes($imprimantes)
{
$this->imprimantes = $imprimantes;
}
/**
* @return mixed
*/
public function getNom()
{
return $this->nom;
}
/**
* @param mixed $nom
*/
public function setNom($nom)
{
$this->nom = $nom;
}
}