src/Entity/ImprimanteType.php line 18

Open in your IDE?
  1. <?php
  2. /**
  3.  * Created by PhpStorm.
  4.  * User: fmartinbrossat
  5.  * Date: 2018-09-13
  6.  * Time: 13:09
  7.  */
  8. namespace App\Entity;
  9. use Doctrine\ORM\Mapping as ORM;
  10. /**
  11.  * @ORM\Entity
  12.  * @ORM\Table(name="imprimante_type")
  13.  */
  14. class ImprimanteType
  15. {
  16.     const TYPE_ETIQUETTE 3;
  17.     const TYPE_LETTRE 2;
  18.     const TYPE_TICKET 1;
  19.     /**
  20.      * @ORM\Column(type="integer")
  21.      * @ORM\Id
  22.      * @ORM\GeneratedValue(strategy="AUTO")
  23.      */
  24.     protected $id;
  25.     /**
  26.      * @ORM\OneToMany(targetEntity="App\Entity\Imprimante", mappedBy="type")
  27.      */
  28.     protected $imprimantes;
  29.     /**
  30.      * @ORM\Column(name="nom", type="string", length=160, nullable=true)
  31.      */
  32.     protected $nom;
  33.     /**
  34.      * @return mixed
  35.      */
  36.     public function getId()
  37.     {
  38.         return $this->id;
  39.     }
  40.     /**
  41.      * @param mixed $id
  42.      */
  43.     public function setId($id)
  44.     {
  45.         $this->id $id;
  46.     }
  47.     /**
  48.      * @return mixed
  49.      */
  50.     public function getImprimantes()
  51.     {
  52.         return $this->imprimantes;
  53.     }
  54.     /**
  55.      * @param mixed $imprimantes
  56.      */
  57.     public function setImprimantes($imprimantes)
  58.     {
  59.         $this->imprimantes $imprimantes;
  60.     }
  61.     /**
  62.      * @return mixed
  63.      */
  64.     public function getNom()
  65.     {
  66.         return $this->nom;
  67.     }
  68.     /**
  69.      * @param mixed $nom
  70.      */
  71.     public function setNom($nom)
  72.     {
  73.         $this->nom $nom;
  74.     }
  75. }