src/Entity/Quote/QuoteRequestOption.php line 11

  1. <?php
  2. namespace App\Entity\Quote;
  3. use App\Entity\Product\ProductOption;
  4. use App\Repository\Quote\QuoteRequestOptionRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassQuoteRequestOptionRepository::class)]
  7. #[ORM\Table(name'app_quote_request_option')]
  8. class QuoteRequestOption
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\ManyToOne(inversedBy'options')]
  15.     private ?QuoteRequest $quote null;
  16.     #[ORM\ManyToOne]
  17.     private ?ProductOption $productOption null;
  18.     #[ORM\Column(length255)]
  19.     private ?string $value null;
  20.     public function getId(): ?int
  21.     {
  22.         return $this->id;
  23.     }
  24.     public function getQuote(): ?QuoteRequest
  25.     {
  26.         return $this->quote;
  27.     }
  28.     public function setQuote(?QuoteRequest $quote): self
  29.     {
  30.         $this->quote $quote;
  31.         return $this;
  32.     }
  33.     public function getProductOption(): ?ProductOption
  34.     {
  35.         return $this->productOption;
  36.     }
  37.     public function setProductOption(?ProductOption $productOption): self
  38.     {
  39.         $this->productOption $productOption;
  40.         return $this;
  41.     }
  42.     public function getValue(): ?string
  43.     {
  44.         return $this->value;
  45.     }
  46.     public function setValue(string $value): self
  47.     {
  48.         $this->value $value;
  49.         return $this;
  50.     }
  51. }