<?phpnamespace App\Entity;use Doctrine\ORM\Mapping as ORM;use Gedmo\Mapping\Annotation as Gedmo;use Gedmo\Translatable\Translatable;/** * @ORM\Entity(repositoryClass="App\EntityRepo\ProductParameterValueRepo") * @ORM\Table(name="product_parameter_value") * @Gedmo\TranslationEntity(class="App\Entity\ProductParameterValueTranslation") */class ProductParameterValue implements Translatable{ /** * @ORM\Column(type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ protected $productParameterValueId=0; /** * @ORM\Column(type="integer", nullable=false) */ protected $productParameterId; /** * @ORM\Column(type="integer", nullable=false) */ protected $productId; /** * @Gedmo\Translatable * @ORM\Column(type="string", length=100, nullable=true) */ protected $productParameterValue; /** * @ORM\Column(type="string", length=100, nullable=true) */ protected $unitName; /** * @ORM\Column(type="string", length=100, nullable=true) */ protected $erpKey; /** * @ORM\Column(type="integer", nullable=true) */ protected $priority; /** * Post locale * Used locale to override Translation listener's locale * * @Gedmo\Locale * */ protected $locale; public function getProductParameterValueId(): ?int { return $this->productParameterValueId; } public function getProductParameterId(): ?int { return $this->productParameterId; } public function setProductParameterId(int $productParameterId): static { $this->productParameterId = $productParameterId; return $this; } public function getProductId(): ?int { return $this->productId; } public function setProductId(int $productId): static { $this->productId = $productId; return $this; } public function getProductParameterValue(): ?string { return $this->productParameterValue; } public function setProductParameterValue(?string $productParameterValue): static { $this->productParameterValue = $productParameterValue; return $this; } public function getUnitName(): ?string { return $this->unitName; } public function setUnitName(?string $unitName): static { $this->unitName = $unitName; return $this; } public function getErpKey(): ?string { return $this->erpKey; } public function setErpKey(?string $erpKey): static { $this->erpKey = $erpKey; return $this; } public function getPriority(): ?int { return $this->priority; } public function setPriority(?int $priority): static { $this->priority = $priority; return $this; } /** * Set locale * * @param string $locale * * @return Product */ public function setLocale($locale) { $this->locale = $locale; return $this; } /** * Get locale * * @return string */ public function getLocale() { return $this->locale; }}