src/Entity/CommandeSpecialeDetailStatus.php line 15

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