src/Entity/Option.php line 11
<?phpnamespace App\Entity;use App\Repository\OptionRepository;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\Serializer\Annotation\Groups;#[ORM\Entity(repositoryClass: OptionRepository::class)]#[ORM\Table(name: '`option`')]class Option{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]#[Groups(['article:view'])]private ?int $id = null;#[ORM\Column(length: 255)]#[Groups(['article:view', 'article:new'])]private ?string $name = null;#[ORM\Column(length: 255)]#[Groups(['article:view', 'article:new'])]private ?string $value = null;#[ORM\Column(nullable: true)]#[Groups(['article:view', 'article:new'])]private ?float $price = null;public function getId(): ?int{return $this->id;}public function getName(): ?string{return $this->name;}public function setName(string $name): self{$this->name = $name;return $this;}public function getValue(): ?string{return $this->value;}public function setValue(string $value): self{$this->value = $value;return $this;}public function getPrice(): ?float{return $this->price;}public function setPrice(?float $price): self{$this->price = $price;return $this;}public function __toString(): string{return $this->name;}}