<?phpnamespace App\Entity;use App\Repository\InvoiceRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: InvoiceRepository::class)]class Invoice{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column(length: 255, nullable: true)] private ?string $stripeId = null; #[ORM\Column(nullable: true)] private ?int $amountPaid = null; #[ORM\Column(length: 255, nullable: true)] private ?string $number = null; #[ORM\ManyToOne(inversedBy: 'invoices')] private ?Subscription $subscription = null; #[ORM\Column(length: 255, nullable: true)] private ?string $hostedInvoiceUrl = null; #[ORM\Column(type: Types::DATETIME_MUTABLE)] private ?\DateTimeInterface $createdAt = null; public function __construct() { $this->createdAt = new \DateTime(); } public function getId(): ?int { return $this->id; } public function getStripeId(): ?string { return $this->stripeId; } public function setStripeId(?string $stripeId): self { $this->stripeId = $stripeId; return $this; } public function getAmountPaid(): ?int { return $this->amountPaid; } public function setAmountPaid(?int $amountPaid): self { $this->amountPaid = $amountPaid; return $this; } public function getNumber(): ?string { return $this->number; } public function setNumber(?string $number): self { $this->number = $number; return $this; } public function getSubscription(): ?Subscription { return $this->subscription; } public function setSubscription(?Subscription $subscription): self { $this->subscription = $subscription; return $this; } public function getHostedInvoiceUrl(): ?string { return $this->hostedInvoiceUrl; } public function setHostedInvoiceUrl(?string $hostedInvoiceUrl): self { $this->hostedInvoiceUrl = $hostedInvoiceUrl; return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(?\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; }}