src/Entity/BaseSite/Plan/PlanFeature.php line 12

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