src/Entity/BaseSite/Plan/AddOn.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\BaseSite\Plan;
  3. use App\Entity\BaseEntity;
  4. use App\Entity\Shop\Shop\Shop;
  5. use App\Repository\BaseSite\Plan\AddOnRepository;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. use Symfony\Bridge\Doctrine\IdGenerator\UuidGenerator;
  9. #[ORM\Entity(repositoryClassAddOnRepository::class)]
  10. class AddOn extends BaseEntity
  11. {
  12.     #[ORM\Id]
  13.     #[ORM\Column(type'guid'uniquetrue)]
  14.     #[ORM\GeneratedValue(strategy'CUSTOM')]
  15.     #[ORM\CustomIdGenerator(class: UuidGenerator::class)]
  16.     private ?string $id;
  17.     #[ORM\ManyToOne(inversedBy'addOns')]
  18.     #[ORM\JoinColumn(nullablefalse)]
  19.     private ?Shop $shop null;
  20.     #[ORM\ManyToOne(inversedBy'addOns')]
  21.     #[ORM\JoinColumn(nullablefalse)]
  22.     private ?Feature $feature null;
  23.     #[ORM\Column(typeTypes::BIGINT)]
  24.     private ?string $value null;
  25.     #[ORM\Column(typeTypes::BIGINT)]
  26.     private ?string $priceOfThisUnit null;
  27.     #[ORM\ManyToOne(inversedBy'addOns')]
  28.     #[ORM\JoinColumn(nullablefalse)]
  29.     private ?Plan $plan null;
  30.     public function getId(): ?string
  31.     {
  32.         return $this->id;
  33.     }
  34.     public function getShop(): ?Shop
  35.     {
  36.         return $this->shop;
  37.     }
  38.     public function setShop(?Shop $shop): static
  39.     {
  40.         $this->shop $shop;
  41.         return $this;
  42.     }
  43.     public function getFeature(): ?Feature
  44.     {
  45.         return $this->feature;
  46.     }
  47.     public function setFeature(?Feature $feature): static
  48.     {
  49.         $this->feature $feature;
  50.         return $this;
  51.     }
  52.     public function getValue(): ?string
  53.     {
  54.         return $this->value;
  55.     }
  56.     public function setValue(string $value): static
  57.     {
  58.         $this->value $value;
  59.         return $this;
  60.     }
  61.     public function getPriceOfThisUnit(): ?string
  62.     {
  63.         return $this->priceOfThisUnit;
  64.     }
  65.     public function setPriceOfThisUnit(string $priceOfThisUnit): static
  66.     {
  67.         $this->priceOfThisUnit $priceOfThisUnit;
  68.         return $this;
  69.     }
  70.     public function getPlan(): ?Plan
  71.     {
  72.         return $this->plan;
  73.     }
  74.     public function setPlan(?Plan $plan): static
  75.     {
  76.         $this->plan $plan;
  77.         return $this;
  78.     }
  79. }