src/Entity/Subscription.php line 12

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\EntreprisePackageRepository;
  4. use App\Traits\TimeStampTrait;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassEntreprisePackageRepository::class)]
  8. #[ORM\HasLifecycleCallbacks]
  9. class Subscription
  10. {
  11.     use TimeStampTrait;
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue]
  14.     #[ORM\Column]
  15.     private ?int $id null;
  16.     #[ORM\ManyToOne(inversedBy'entreprisePackages')]
  17.     private ?Entreprise $entreprise null;
  18.     #[ORM\ManyToOne(inversedBy'entreprisePackages')]
  19.     private ?Package $package null;
  20.     #[ORM\Column]
  21.     private ?bool $status null;
  22.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  23.     private ?\DateTimeInterface $startAt null;
  24.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  25.     private ?\DateTimeInterface $endAt null;
  26.     #[ORM\Column(length50)]
  27.     private ?string $paymenttype null;
  28.     #[ORM\Column(typeTypes::DECIMALprecision10scale2)]
  29.     private ?string $amount null;
  30.     #[ORM\Column(length10)]
  31.     private ?string $currency null;
  32.     #[ORM\Column]
  33.     private ?bool $paid null;
  34.     #[ORM\Column(length255)]
  35.     private ?string $orderNumber null;
  36.     #[ORM\Column(length100nullabletrue)]
  37.     private ?string $code null;
  38.     public function getId(): ?int
  39.     {
  40.         return $this->id;
  41.     }
  42.     public function getEntreprise(): ?Entreprise
  43.     {
  44.         return $this->entreprise;
  45.     }
  46.     public function setEntreprise(?Entreprise $entreprise): static
  47.     {
  48.         $this->entreprise $entreprise;
  49.         return $this;
  50.     }
  51.     public function getPackage(): ?Package
  52.     {
  53.         return $this->package;
  54.     }
  55.     public function setPackage(?Package $package): static
  56.     {
  57.         $this->package $package;
  58.         return $this;
  59.     }
  60.     public function isStatus(): ?bool
  61.     {
  62.         return $this->status;
  63.     }
  64.     public function setStatus(bool $status): static
  65.     {
  66.         $this->status $status;
  67.         return $this;
  68.     }
  69.     public function getStartAt(): ?\DateTimeInterface
  70.     {
  71.         return $this->startAt;
  72.     }
  73.     public function setStartAt(\DateTimeInterface $startAt): static
  74.     {
  75.         $this->startAt $startAt;
  76.         return $this;
  77.     }
  78.     public function getEndAt(): ?\DateTimeInterface
  79.     {
  80.         return $this->endAt;
  81.     }
  82.     public function setEndAt(\DateTimeInterface $endAt): static
  83.     {
  84.         $this->endAt $endAt;
  85.         return $this;
  86.     }
  87.     public function getPaymenttype(): ?string
  88.     {
  89.         return $this->paymenttype;
  90.     }
  91.     public function setPaymenttype(string $paymenttype): static
  92.     {
  93.         $this->paymenttype $paymenttype;
  94.         return $this;
  95.     }
  96.     public function getAmount(): ?string
  97.     {
  98.         return $this->amount;
  99.     }
  100.     public function setAmount(string $amount): static
  101.     {
  102.         $this->amount $amount;
  103.         return $this;
  104.     }
  105.     public function getCurrency(): ?string
  106.     {
  107.         return $this->currency;
  108.     }
  109.     public function setCurrency(string $currency): static
  110.     {
  111.         $this->currency $currency;
  112.         return $this;
  113.     }
  114.     public function isPaid(): ?bool
  115.     {
  116.         return $this->paid;
  117.     }
  118.     public function setPaid(bool $paid): static
  119.     {
  120.         $this->paid $paid;
  121.         return $this;
  122.     }
  123.     public function getOrderNumber(): ?string
  124.     {
  125.         return $this->orderNumber;
  126.     }
  127.     public function setOrderNumber(string $orderNumber): static
  128.     {
  129.         $this->orderNumber $orderNumber;
  130.         return $this;
  131.     }
  132.     public function getCode(): ?string
  133.     {
  134.         return $this->code;
  135.     }
  136.     public function setCode(?string $code): static
  137.     {
  138.         $this->code $code;
  139.         return $this;
  140.     }
  141. }