src/Entity/SubscriptionPayment.php line 12
<?phpnamespace App\Entity;use App\Repository\SubscriptionPaymentRepository;use App\Traits\TimeStampTrait;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: SubscriptionPaymentRepository::class)]#[ORM\HasLifecycleCallbacks]class SubscriptionPayment{use TimeStampTrait;#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\ManyToOne(inversedBy: 'subscriptionPayments')]private ?Subscription $subscription = null;#[ORM\ManyToOne]private ?Entreprise $entreprise = null;#[ORM\ManyToOne]private ?Package $package = null;#[ORM\Column(length: 100, unique: true)]private ?string $orderNumber = null;#[ORM\Column(type: Types::DECIMAL, precision: 10, scale: 2)]private ?string $amount = null;#[ORM\Column(length: 10)]private ?string $currency = null;#[ORM\Column(length: 20)]private ?string $billingCycle = null;#[ORM\Column]private int $monthsCount = 1;#[ORM\Column(length: 25)]private ?string $status = null;#[ORM\Column(nullable: true)]private ?bool $paid = null;#[ORM\Column(length: 150, nullable: true)]private ?string $gatewayReference = null;#[ORM\Column(length: 255, nullable: true)]private ?string $checkoutUrl = null;#[ORM\Column(type: Types::TEXT, nullable: true)]private ?string $gatewayPayload = null;#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]private ?\DateTimeInterface $paidAt = null;public function getId(): ?int{return $this->id;}public function getSubscription(): ?Subscription{return $this->subscription;}public function setSubscription(?Subscription $subscription): static{$this->subscription = $subscription;return $this;}public function getEntreprise(): ?Entreprise{return $this->entreprise;}public function setEntreprise(?Entreprise $entreprise): static{$this->entreprise = $entreprise;return $this;}public function getPackage(): ?Package{return $this->package;}public function setPackage(?Package $package): static{$this->package = $package;return $this;}public function getOrderNumber(): ?string{return $this->orderNumber;}public function setOrderNumber(string $orderNumber): static{$this->orderNumber = $orderNumber;return $this;}public function getAmount(): ?string{return $this->amount;}public function setAmount(string $amount): static{$this->amount = $amount;return $this;}public function getCurrency(): ?string{return $this->currency;}public function setCurrency(string $currency): static{$this->currency = $currency;return $this;}public function getBillingCycle(): ?string{return $this->billingCycle;}public function setBillingCycle(string $billingCycle): static{$this->billingCycle = $billingCycle;return $this;}public function getMonthsCount(): int{return $this->monthsCount;}public function setMonthsCount(int $monthsCount): static{$this->monthsCount = max(1, $monthsCount);return $this;}public function getStatus(): ?string{return $this->status;}public function setStatus(string $status): static{$this->status = $status;return $this;}public function isPaid(): ?bool{return $this->paid;}public function setPaid(?bool $paid): static{$this->paid = $paid;return $this;}public function getGatewayReference(): ?string{return $this->gatewayReference;}public function setGatewayReference(?string $gatewayReference): static{$this->gatewayReference = $gatewayReference;return $this;}public function getCheckoutUrl(): ?string{return $this->checkoutUrl;}public function setCheckoutUrl(?string $checkoutUrl): static{$this->checkoutUrl = $checkoutUrl;return $this;}public function getGatewayPayload(): ?string{return $this->gatewayPayload;}public function setGatewayPayload(?string $gatewayPayload): static{$this->gatewayPayload = $gatewayPayload;return $this;}public function getPaidAt(): ?\DateTimeInterface{return $this->paidAt;}public function setPaidAt(?\DateTimeInterface $paidAt): static{$this->paidAt = $paidAt;return $this;}}