src/Entity/ProductParameterValue.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Gedmo\Mapping\Annotation as Gedmo;
  5. use Gedmo\Translatable\Translatable;
  6. /**
  7.  * @ORM\Entity(repositoryClass="App\EntityRepo\ProductParameterValueRepo")
  8.  * @ORM\Table(name="product_parameter_value")
  9.  * @Gedmo\TranslationEntity(class="App\Entity\ProductParameterValueTranslation")
  10.  */
  11. class ProductParameterValue implements Translatable
  12. {
  13.     /**
  14.      * @ORM\Column(type="integer")
  15.      * @ORM\Id
  16.      * @ORM\GeneratedValue(strategy="AUTO")
  17.      */ 
  18.     protected $productParameterValueId=0;
  19.     
  20.     /**
  21.      * @ORM\Column(type="integer", nullable=false)
  22.      */
  23.     protected $productParameterId;  
  24.     /**
  25.      * @ORM\Column(type="integer", nullable=false)
  26.      */
  27.     protected $productId;  
  28.     /**
  29.      * @Gedmo\Translatable
  30.      * @ORM\Column(type="string", length=100, nullable=true)
  31.      */
  32.     protected $productParameterValue;
  33.     
  34.     /**
  35.      * @ORM\Column(type="string", length=100, nullable=true)
  36.      */
  37.     protected $unitName;        
  38.     
  39.     /**
  40.      * @ORM\Column(type="string", length=100, nullable=true)
  41.      */
  42.     protected $erpKey;  
  43.     /**
  44.      * @ORM\Column(type="integer", nullable=true)
  45.      */
  46.     protected $priority;  
  47.     /**
  48.      * Post locale
  49.      * Used locale to override Translation listener's locale
  50.      *
  51.      * @Gedmo\Locale
  52.      * 
  53.      */
  54.     protected $locale;
  55.     public function getProductParameterValueId(): ?int
  56.     {
  57.         return $this->productParameterValueId;
  58.     }
  59.     public function getProductParameterId(): ?int
  60.     {
  61.         return $this->productParameterId;
  62.     }
  63.     public function setProductParameterId(int $productParameterId): static
  64.     {
  65.         $this->productParameterId $productParameterId;
  66.         return $this;
  67.     }
  68.     public function getProductId(): ?int
  69.     {
  70.         return $this->productId;
  71.     }
  72.     public function setProductId(int $productId): static
  73.     {
  74.         $this->productId $productId;
  75.         return $this;
  76.     }
  77.     public function getProductParameterValue(): ?string
  78.     {
  79.         return $this->productParameterValue;
  80.     }
  81.     public function setProductParameterValue(?string $productParameterValue): static
  82.     {
  83.         $this->productParameterValue $productParameterValue;
  84.         return $this;
  85.     }
  86.     public function getUnitName(): ?string
  87.     {
  88.         return $this->unitName;
  89.     }
  90.     public function setUnitName(?string $unitName): static
  91.     {
  92.         $this->unitName $unitName;
  93.         return $this;
  94.     }
  95.     public function getErpKey(): ?string
  96.     {
  97.         return $this->erpKey;
  98.     }
  99.     public function setErpKey(?string $erpKey): static
  100.     {
  101.         $this->erpKey $erpKey;
  102.         return $this;
  103.     }
  104.     public function getPriority(): ?int
  105.     {
  106.         return $this->priority;
  107.     }
  108.     public function setPriority(?int $priority): static
  109.     {
  110.         $this->priority $priority;
  111.         return $this;
  112.     }
  113.     /**
  114.      * Set locale
  115.      *
  116.      * @param string $locale
  117.      *
  118.      * @return Product
  119.      */
  120.     public function setLocale($locale)
  121.     {
  122.         $this->locale $locale;
  123.         return $this;
  124.     }
  125.     /**
  126.      * Get locale
  127.      *
  128.      * @return string
  129.      */
  130.     public function getLocale()
  131.     {
  132.         return $this->locale;
  133.     }
  134. }