src/Entity/SubscriptionProduct.php line 10
<?phpnamespace App\Entity;use App\Repository\SubscriptionProductRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: SubscriptionProductRepository::class)]class SubscriptionProduct{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\ManyToOne(inversedBy: 'subscriptionProducts')]private ?Subscription $subscription = null;#[ORM\Column(nullable: true)]private ?int $qty = null;#[ORM\Column(nullable: true)]private ?float $price = null;#[ORM\Column(nullable: true)]private ?float $tax_amount = null;#[ORM\Column]private ?int $product_id = null;#[ORM\Column(length: 255)]private ?string $product_name = null;#[ORM\Column(type: Types::DATETIME_MUTABLE)]private ?\DateTimeInterface $CreatedAt = null;#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]private ?\DateTimeInterface $updatedAt = null;#[ORM\Column(length: 255)]private ?string $social_network = null;#[ORM\Column(length: 255)]private ?string $service = null;#[ORM\Column(length: 255)]private ?string $quality = null;#[ORM\Column(length: 255)]private ?string $currency = null;public function __construct(){$this->updatedAt = new \DateTimeImmutable('now');}public function getId(): ?int{return $this->id;}public function getSubscription(): ?Subscription{return $this->subscription;}public function setSubscription(?Subscription $subscription): self{$this->subscription = $subscription;return $this;}public function getQty(): ?int{return $this->qty;}public function setQty(?int $qty): self{$this->qty = $qty;return $this;}public function getPrice(): ?float{return $this->price;}public function setPrice(?float $price): self{$this->price = $price;return $this;}public function getTaxAmount(): ?float{return $this->tax_amount;}public function setTaxAmount(?float $tax_amount): self{$this->tax_amount = $tax_amount;return $this;}public function getProductId(): ?int{return $this->product_id;}public function setProductId(int $product_id): self{$this->product_id = $product_id;return $this;}public function getProductName(): ?string{return $this->product_name;}public function setProductName(string $product_name): self{$this->product_name = $product_name;return $this;}public function getCreatedAt(): ?\DateTimeInterface{return $this->CreatedAt;}public function setCreatedAt(\DateTimeInterface $CreatedAt): self{$this->CreatedAt = $CreatedAt;return $this;}public function getUpdatedAt(): ?\DateTimeInterface{return $this->updatedAt;}public function setUpdatedAt(?\DateTimeInterface $updatedAt): self{$this->updatedAt = $updatedAt;return $this;}public function getSocialNetwork(): ?string{return $this->social_network;}public function setSocialNetwork(string $social_network): self{$this->social_network = $social_network;return $this;}public function getService(): ?string{return $this->service;}public function setService(string $service): self{$this->service = $service;return $this;}public function getQuality(): ?string{return $this->quality;}public function setQuality(string $quality): self{$this->quality = $quality;return $this;}public function getCurrency(): ?string{return $this->currency;}public function setCurrency(string $currency): self{$this->currency = $currency;return $this;}}