src/Entity/OptionValue.php line 9
<?php
namespace App\Entity;
use App\Repository\OptionValueRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: OptionValueRepository::class)]
class OptionValue
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne(inversedBy: 'optionValues')]
private ?ProductVariant $productVariant = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $value = null;
#[ORM\ManyToOne(inversedBy: 'option_values')]
private ?Option $productOption = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $name = null;
public function getId(): ?int
{
return $this->id;
}
public function getProductVariant(): ?ProductVariant
{
return $this->productVariant;
}
public function setProductVariant(?ProductVariant $productVariant): static
{
$this->productVariant = $productVariant;
return $this;
}
public function getValue(): ?string
{
return $this->value;
}
public function setValue(?string $value): static
{
$this->value = $value;
return $this;
}
public function getProductOption(): ?Option
{
return $this->productOption;
}
public function setProductOption(?Option $productOption): static
{
$this->productOption = $productOption;
return $this;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(?string $name): static
{
$this->name = $name;
return $this;
}
}