src/Entity/ReceptionType.php line 15

Open in your IDE?
  1. <?php
  2. /**
  3.  * ReceptionType.php
  4.  * Created by Stéphane Brun
  5.  * Date: 17/07/2018 at 16:56
  6.  */
  7. namespace App\Entity;
  8. use Doctrine\ORM\Mapping as ORM;
  9. /**
  10.  * @ORM\Entity
  11.  * @ORM\Table(name="reception_type")
  12.  */
  13. class ReceptionType
  14. {
  15.     const FERME 1;
  16.     const DEPOT 2;
  17.     const MISE_EN_PLACE 3;
  18.     const OFFICE 4;
  19.     const SOLDE 5;
  20.     /**
  21.      * @ORM\Column(type="integer")
  22.      * @ORM\Id
  23.      * @ORM\GeneratedValue(strategy="AUTO")
  24.      */
  25.     protected $id;
  26.     /**
  27.      * @ORM\Column(name="description", type="string", length=50)
  28.      */
  29.     protected $description;
  30.     public function __toString()
  31.     {
  32.         return $this->getDescription();
  33.     }
  34.     /**
  35.      * @return mixed
  36.      */
  37.     public function getId()
  38.     {
  39.         return $this->id;
  40.     }
  41.     /**
  42.      * @return mixed
  43.      */
  44.     public function getDescription()
  45.     {
  46.         return $this->description;
  47.     }
  48.     /**
  49.      * @param mixed $description
  50.      */
  51.     public function setDescription($description)
  52.     {
  53.         $this->description $description;
  54.     }
  55. }