src/Flexy/Apps/ListingBundle/Entity/ListingOption.php line 11

  1. <?php
  2. namespace App\Flexy\Apps\ListingBundle\Entity;
  3. use ApiPlatform\Metadata\ApiResource;
  4. use App\Repository\Flexy\Apps\ListingBundle\Entity\ListingOptionRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassListingOptionRepository::class)]
  7. #[ApiResource]
  8. class ListingOption
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\Column(length255nullabletrue)]
  15.     private ?string $optionName null;
  16.     #[ORM\Column(nullabletrue)]
  17.     private ?array $metaData null;
  18.     public function getId(): ?int
  19.     {
  20.         return $this->id;
  21.     }
  22.     public function getOptionName(): ?string
  23.     {
  24.         return $this->optionName;
  25.     }
  26.     public function setOptionName(?string $optionName): static
  27.     {
  28.         $this->optionName $optionName;
  29.         return $this;
  30.     }
  31.     public function getMetaData(): ?array
  32.     {
  33.         return $this->metaData;
  34.     }
  35.     public function setMetaData(?array $metaData): static
  36.     {
  37.         $this->metaData $metaData;
  38.         return $this;
  39.     }
  40. }