src/Entity/UnitMeasures.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * UnitMeasures
  6.  *
  7.  * @ORM\Table(name="unit_measures", indexes={@ORM\Index(name="active", columns={"active"})})
  8.  * @ORM\Entity(repositoryClass="App\Repository\UnitMeasuresRepository")
  9.  */
  10. class UnitMeasures
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="id", type="integer", options={"unsigned"=true})
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="AUTO")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @var string
  22.      *
  23.      * @ORM\Column(name="unit_measure_name", type="string", length=255)
  24.      */
  25.     private $unitMeasureName;
  26.     /**
  27.      * @var string
  28.      *
  29.      * @ORM\Column(name="unit_measure_name_en", type="string", nullable=true, length=255)
  30.      */
  31.     private $unitMeasureNameEn;
  32.     /**
  33.      * @var string
  34.      *
  35.      * @ORM\Column(name="abbreviation", type="string", length=255)
  36.      */
  37.     private $abbreviation;
  38.     /**
  39.      * @var bool
  40.      *
  41.      * @ORM\Column(name="active", type="boolean", options={"default" : true})
  42.      */
  43.     private $active;
  44.     /**
  45.      * Get id
  46.      *
  47.      * @return int
  48.      */
  49.     public function getId()
  50.     {
  51.         return $this->id;
  52.     }
  53.     /**
  54.      * Set unitMeasureName
  55.      *
  56.      * @param string $unitMeasureName
  57.      *
  58.      * @return UnitMeasures
  59.      */
  60.     public function setUnitMeasureName($unitMeasureName)
  61.     {
  62.         $this->unitMeasureName $unitMeasureName;
  63.         return $this;
  64.     }
  65.     /**
  66.      * Get unitMeasureName
  67.      *
  68.      * @return string
  69.      */
  70.     public function getUnitMeasureName()
  71.     {
  72.         return $this->unitMeasureName;
  73.     }
  74.     /**
  75.      * @return string
  76.      */
  77.     public function getUnitMeasureNameEn()
  78.     {
  79.         return $this->unitMeasureNameEn;
  80.     }
  81.     /**
  82.      * @param string $unitMeasureNameEn
  83.      */
  84.     public function setUnitMeasureNameEn($unitMeasureNameEn)
  85.     {
  86.         $this->unitMeasureNameEn $unitMeasureNameEn;
  87.     }
  88.     /**
  89.      * Set abbreviation
  90.      *
  91.      * @param string $abbreviation
  92.      *
  93.      * @return UnitMeasures
  94.      */
  95.     public function setAbbreviation($abbreviation)
  96.     {
  97.         $this->abbreviation $abbreviation;
  98.         return $this;
  99.     }
  100.     /**
  101.      * Get abbreviation
  102.      *
  103.      * @return string
  104.      */
  105.     public function getAbbreviation()
  106.     {
  107.         return $this->abbreviation;
  108.     }
  109.     /**
  110.      * Set active
  111.      *
  112.      * @param boolean $active
  113.      *
  114.      * @return UnitMeasures
  115.      */
  116.     public function setActive($active)
  117.     {
  118.         $this->active $active;
  119.         return $this;
  120.     }
  121.     /**
  122.      * Get active
  123.      *
  124.      * @return bool
  125.      */
  126.     public function getActive()
  127.     {
  128.         return $this->active;
  129.     }
  130. }