src/Entity/CommandeReponse.php line 16

Open in your IDE?
  1. <?php
  2. /**
  3.  * CommandeReponse.php
  4.  * modified by FMB
  5.  * Date: 07/06/2018 at 21:06
  6.  */
  7. namespace App\Entity;
  8. use Doctrine\ORM\Mapping as ORM;
  9. /**
  10.  * @ORM\Entity
  11.  * @ORM\Table(name="commande_reponse")
  12.  * @ORM\Entity(repositoryClass="App\Repository\CommandeReponseRepository")
  13.  */
  14. class CommandeReponse
  15. {
  16.     const DISPO 0;
  17.     const OUT_STOCK 1;
  18.     const NO_NOTE 2;
  19.     const REPRINT_NOTE 3;
  20.     const EMPTY_TYPE 4;
  21.     const REPRINT_NO_NOTE 6;
  22.     const NOTE 7;
  23.     const DAMAGED 11;
  24.     const STOP_COM 12;
  25.     const SUBSTITUTION 15;
  26.     /**
  27.      * @ORM\Column(type="integer")
  28.      * @ORM\Id
  29.      * @ORM\GeneratedValue(strategy="AUTO")
  30.      */
  31.     protected $id;
  32.     /**
  33.      * @ORM\Column(name="description", type="string", length=50)
  34.      */
  35.     protected $description;
  36.     /**
  37.      * @return mixed
  38.      */
  39.     public function getId()
  40.     {
  41.         return $this->id;
  42.     }
  43.     /**
  44.      * @return mixed
  45.      */
  46.     public function getDescription()
  47.     {
  48.         return $this->description;
  49.     }
  50.     /**
  51.      * @param mixed $description
  52.      */
  53.     public function setDescription($description)
  54.     {
  55.         $this->description $description;
  56.     }
  57.     /**
  58.      * @return mixed
  59.      */
  60.     public function __toString()
  61.     {
  62.         return $this->getDescription();
  63.     }
  64. }