src/Entity/Subscription.php line 12
<?phpnamespace App\Entity;use App\Repository\EntreprisePackageRepository;use App\Traits\TimeStampTrait;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: EntreprisePackageRepository::class)]#[ORM\HasLifecycleCallbacks]class Subscription{use TimeStampTrait;#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\ManyToOne(inversedBy: 'entreprisePackages')]private ?Entreprise $entreprise = null;#[ORM\ManyToOne(inversedBy: 'entreprisePackages')]private ?Package $package = null;#[ORM\Column]private ?bool $status = null;#[ORM\Column(type: Types::DATETIME_MUTABLE)]private ?\DateTimeInterface $startAt = null;#[ORM\Column(type: Types::DATETIME_MUTABLE)]private ?\DateTimeInterface $endAt = null;#[ORM\Column(length: 50)]private ?string $paymenttype = null;#[ORM\Column(type: Types::DECIMAL, precision: 10, scale: 2)]private ?string $amount = null;#[ORM\Column(length: 10)]private ?string $currency = null;#[ORM\Column]private ?bool $paid = null;#[ORM\Column(length: 255)]private ?string $orderNumber = null;#[ORM\Column(length: 100, nullable: true)]private ?string $code = null;public function getId(): ?int{return $this->id;}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 isStatus(): ?bool{return $this->status;}public function setStatus(bool $status): static{$this->status = $status;return $this;}public function getStartAt(): ?\DateTimeInterface{return $this->startAt;}public function setStartAt(\DateTimeInterface $startAt): static{$this->startAt = $startAt;return $this;}public function getEndAt(): ?\DateTimeInterface{return $this->endAt;}public function setEndAt(\DateTimeInterface $endAt): static{$this->endAt = $endAt;return $this;}public function getPaymenttype(): ?string{return $this->paymenttype;}public function setPaymenttype(string $paymenttype): static{$this->paymenttype = $paymenttype;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 isPaid(): ?bool{return $this->paid;}public function setPaid(bool $paid): static{$this->paid = $paid;return $this;}public function getOrderNumber(): ?string{return $this->orderNumber;}public function setOrderNumber(string $orderNumber): static{$this->orderNumber = $orderNumber;return $this;}public function getCode(): ?string{return $this->code;}public function setCode(?string $code): static{$this->code = $code;return $this;}}