src/Entity/CommandeType.php line 15

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