src/Entity/Invoice.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\InvoiceRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassInvoiceRepository::class)]
  7. class Invoice
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column(type'integer')]
  12.     private $id;
  13.     #[ORM\Column(type'string'length255)]
  14.     private $number;
  15.     #[ORM\Column(type'float')]
  16.     private $amount;
  17.     #[ORM\Column(type'date')]
  18.     private $createdAt;
  19.     #[ORM\Column(type'string'length255)]
  20.     private $stripeInvoiceId;
  21.     #[ORM\ManyToOne(targetEntityUser::class, inversedBy'invoices')]
  22.     private $pro;
  23.     #[ORM\Column(type'string'length255)]
  24.     private $status;
  25.     #[ORM\Column(type'string'length255nullabletrue)]
  26.     private $period;
  27.     #[ORM\ManyToOne(targetEntityOffer::class, inversedBy'invoices')]
  28.     private $offer;
  29.     #[ORM\ManyToOne(inversedBy'invoices')]
  30.     private ?Subscription $subscription null;
  31.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  32.     private ?\DateTimeInterface $start null;
  33.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  34.     private ?\DateTimeInterface $end null;
  35.     #[ORM\Column(nullabletrue)]
  36.     private ?float $tva null;
  37.     public function getId(): ?int
  38.     {
  39.         return $this->id;
  40.     }
  41.     public function getNumber(): ?string
  42.     {
  43.         return $this->number;
  44.     }
  45.     public function setNumber(string $number): self
  46.     {
  47.         $this->number $number;
  48.         return $this;
  49.     }
  50.     public function getAmount(): ?float
  51.     {
  52.         return $this->amount;
  53.     }
  54.     public function setAmount(float $amount): self
  55.     {
  56.         $this->amount $amount;
  57.         return $this;
  58.     }
  59.     public function getCreatedAt(): ?\DateTimeInterface
  60.     {
  61.         return $this->createdAt;
  62.     }
  63.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  64.     {
  65.         $this->createdAt $createdAt;
  66.         return $this;
  67.     }
  68.     public function getStripeInvoiceId(): ?string
  69.     {
  70.         return $this->stripeInvoiceId;
  71.     }
  72.     public function setStripeInvoiceId(string $stripeInvoiceId): self
  73.     {
  74.         $this->stripeInvoiceId $stripeInvoiceId;
  75.         return $this;
  76.     }
  77.     public function getPro(): ?User
  78.     {
  79.         return $this->pro;
  80.     }
  81.     public function setPro(?User $pro): self
  82.     {
  83.         $this->pro $pro;
  84.         return $this;
  85.     }
  86.     public function getStatus(): ?string
  87.     {
  88.         return $this->status;
  89.     }
  90.     public function setStatus(string $status): self
  91.     {
  92.         $this->status $status;
  93.         return $this;
  94.     }
  95.     public function getPeriod(): ?string
  96.     {
  97.         return $this->period;
  98.     }
  99.     public function setPeriod(?string $period): self
  100.     {
  101.         $this->period $period;
  102.         return $this;
  103.     }
  104.     public function getOffer(): ?Offer
  105.     {
  106.         return $this->offer;
  107.     }
  108.     public function setOffer(?Offer $offer): self
  109.     {
  110.         $this->offer $offer;
  111.         return $this;
  112.     }
  113.     public function getSubscription(): ?Subscription
  114.     {
  115.         return $this->subscription;
  116.     }
  117.     public function setSubscription(?Subscription $subscription): static
  118.     {
  119.         $this->subscription $subscription;
  120.         return $this;
  121.     }
  122.     public function getStart(): ?\DateTimeInterface
  123.     {
  124.         return $this->start;
  125.     }
  126.     public function setStart(?\DateTimeInterface $start): static
  127.     {
  128.         $this->start $start;
  129.         return $this;
  130.     }
  131.     public function getEnd(): ?\DateTimeInterface
  132.     {
  133.         return $this->end;
  134.     }
  135.     public function setEnd(?\DateTimeInterface $end): static
  136.     {
  137.         $this->end $end;
  138.         return $this;
  139.     }
  140.     public function getTva(): ?float
  141.     {
  142.         return $this->tva;
  143.     }
  144.     public function setTva(?float $tva): static
  145.     {
  146.         $this->tva $tva;
  147.         return $this;
  148.     }
  149. }