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

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