src/Entity/Etats.php line 15

Open in your IDE?
  1. <?php
  2. /**
  3.  * Etats.php
  4.  * Created by Stéphane Brun
  5.  * Date: 2018-04-03 at 11:36
  6.  */
  7. namespace App\Entity;
  8. use Doctrine\ORM\Mapping as ORM;
  9. /**
  10.  * @ORM\Entity
  11.  * @ORM\Table(name="tetat")
  12.  */
  13. class Etats
  14. {
  15.     const FORTHCOMING 1;
  16.     const DISPO 2;
  17.     const MISSED 3;
  18.     const NO_AVAILABLE 4;
  19.     const NOTE 7;
  20.     const DAMAGED 11;
  21.     //ANCIEN ETAT
  22. //
  23. //    const OUT = 1;
  24. //    const NO_NOTE = 2;
  25. //    const REPRINT_NOTE = 3;
  26. //    const ON_COMMAND = 4;
  27. //    const SOLDE = 5;
  28. //    const REPRINT_NO_NOTE = 6;
  29. //    const NOTE = 7;
  30. //    const NO_PROVIDER = 9;
  31. //    const DAMAGED = 11;
  32. //    const STOP_COM = 12;
  33.     /**
  34.      * @ORM\Column(type="integer")
  35.      * @ORM\Id
  36.      * @ORM\GeneratedValue(strategy="AUTO")
  37.      */
  38.     protected $id;
  39.     /**
  40.      * @ORM\Column(name="etatdesc", type="string", length=50)
  41.      */
  42.     protected $description;
  43.     /**
  44.      * has one Company
  45.      *
  46.      * @ORM\ManyToOne(targetEntity="App\Entity\Company")
  47.      * @ORM\JoinColumn(name="company_id", referencedColumnName="id", nullable=true)
  48.      */
  49.     protected $company;
  50.     /**
  51.      * @return mixed
  52.      */
  53.     public function getCompany()
  54.     {
  55.         return $this->company;
  56.     }
  57.     /**
  58.      * @param Company $company
  59.      */
  60.     public function setCompany(Company $company)
  61.     {
  62.         $this->company $company;
  63.     }
  64.     /**
  65.      * @return mixed
  66.      */
  67.     public function getId()
  68.     {
  69.         return $this->id;
  70.     }
  71.     /**
  72.      * @return mixed
  73.      */
  74.     public function getDescription()
  75.     {
  76.         return $this->description;
  77.     }
  78.     /**
  79.      * @param mixed $description
  80.      */
  81.     public function setDescription($description)
  82.     {
  83.         $this->description $description;
  84.     }
  85. }