src/Entity/SubscriptionProduct.php line 10

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SubscriptionProductRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassSubscriptionProductRepository::class)]
  7. class SubscriptionProduct
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\ManyToOne(inversedBy'subscriptionProducts')]
  14.     private ?Subscription $subscription null;
  15.     #[ORM\Column(nullabletrue)]
  16.     private ?int $qty null;
  17.     #[ORM\Column(nullabletrue)]
  18.     private ?float $price null;
  19.     #[ORM\Column(nullabletrue)]
  20.     private ?float $tax_amount null;
  21.     #[ORM\Column]
  22.     private ?int $product_id null;
  23.     #[ORM\Column(length255)]
  24.     private ?string $product_name null;
  25.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  26.     private ?\DateTimeInterface $CreatedAt null;
  27.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  28.     private ?\DateTimeInterface $updatedAt null;
  29.     #[ORM\Column(length255)]
  30.     private ?string $social_network null;
  31.     #[ORM\Column(length255)]
  32.     private ?string $service null;
  33.     #[ORM\Column(length255)]
  34.     private ?string $quality null;
  35.     #[ORM\Column(length255)]
  36.     private ?string $currency null;
  37.     public function __construct()
  38.     {
  39.         $this->updatedAt = new \DateTimeImmutable('now');
  40.     }
  41.     public function getId(): ?int
  42.     {
  43.         return $this->id;
  44.     }
  45.     public function getSubscription(): ?Subscription
  46.     {
  47.         return $this->subscription;
  48.     }
  49.     public function setSubscription(?Subscription $subscription): self
  50.     {
  51.         $this->subscription $subscription;
  52.         return $this;
  53.     }
  54.     public function getQty(): ?int
  55.     {
  56.         return $this->qty;
  57.     }
  58.     public function setQty(?int $qty): self
  59.     {
  60.         $this->qty $qty;
  61.         return $this;
  62.     }
  63.     public function getPrice(): ?float
  64.     {
  65.         return $this->price;
  66.     }
  67.     public function setPrice(?float $price): self
  68.     {
  69.         $this->price $price;
  70.         return $this;
  71.     }
  72.     public function getTaxAmount(): ?float
  73.     {
  74.         return $this->tax_amount;
  75.     }
  76.     public function setTaxAmount(?float $tax_amount): self
  77.     {
  78.         $this->tax_amount $tax_amount;
  79.         return $this;
  80.     }
  81.     public function getProductId(): ?int
  82.     {
  83.         return $this->product_id;
  84.     }
  85.     public function setProductId(int $product_id): self
  86.     {
  87.         $this->product_id $product_id;
  88.         return $this;
  89.     }
  90.     public function getProductName(): ?string
  91.     {
  92.         return $this->product_name;
  93.     }
  94.     public function setProductName(string $product_name): self
  95.     {
  96.         $this->product_name $product_name;
  97.         return $this;
  98.     }
  99.     public function getCreatedAt(): ?\DateTimeInterface
  100.     {
  101.         return $this->CreatedAt;
  102.     }
  103.     public function setCreatedAt(\DateTimeInterface $CreatedAt): self
  104.     {
  105.         $this->CreatedAt $CreatedAt;
  106.         return $this;
  107.     }
  108.     public function getUpdatedAt(): ?\DateTimeInterface
  109.     {
  110.         return $this->updatedAt;
  111.     }
  112.     public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
  113.     {
  114.         $this->updatedAt $updatedAt;
  115.         return $this;
  116.     }
  117.     public function getSocialNetwork(): ?string
  118.     {
  119.         return $this->social_network;
  120.     }
  121.     public function setSocialNetwork(string $social_network): self
  122.     {
  123.         $this->social_network $social_network;
  124.         return $this;
  125.     }
  126.     public function getService(): ?string
  127.     {
  128.         return $this->service;
  129.     }
  130.     public function setService(string $service): self
  131.     {
  132.         $this->service $service;
  133.         return $this;
  134.     }
  135.     public function getQuality(): ?string
  136.     {
  137.         return $this->quality;
  138.     }
  139.     public function setQuality(string $quality): self
  140.     {
  141.         $this->quality $quality;
  142.         return $this;
  143.     }
  144.     public function getCurrency(): ?string
  145.     {
  146.         return $this->currency;
  147.     }
  148.     public function setCurrency(string $currency): self
  149.     {
  150.         $this->currency $currency;
  151.         return $this;
  152.     }
  153. }