src/Entity/Paiement.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PaiementRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=PaiementRepository::class)
  7.  */
  8. class Paiement
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=255, nullable=true)
  18.      */
  19.     private $value;
  20.     /**
  21.      * @ORM\Column(type="string", length=255)
  22.      */
  23.     private $payinId;
  24.     /**
  25.      * @ORM\ManyToOne(targetEntity=Abonnement::class, inversedBy="paiements")
  26.      * @ORM\JoinColumn(nullable=false)
  27.      */
  28.     private $abonnement;
  29.     /**
  30.      * @ORM\Column(type="datetime_immutable", options={"default"="CURRENT_TIMESTAMP"})
  31.      */
  32.     private $createdAt;
  33.     /**
  34.      * @ORM\Column(type="string", length=255, nullable=true)
  35.      */
  36.     private $stripeInvoiceID;
  37.     /**
  38.      * @ORM\Column(type="integer", nullable=true)
  39.      */
  40.     private $stripeAmountPaid;
  41.     /**
  42.      * @ORM\Column(type="string", length=255, nullable=true)
  43.      */
  44.     private $stripeNumber;
  45.     /**
  46.      * @ORM\Column(type="string", length=255)
  47.      */
  48.     private $hostedInvoiceUrl;
  49.     /**
  50.      * @ORM\Column(type="boolean", options={"default": true})
  51.      */
  52.     private $paid;
  53.     public function __construct()
  54.     {
  55.         $this->createdAt = new \DateTimeImmutable();
  56.     }
  57.     public function getId(): ?int
  58.     {
  59.         return $this->id;
  60.     }
  61.     public function getValue(): ?string
  62.     {
  63.         return $this->value;
  64.     }
  65.     public function setValue(?string $value): self
  66.     {
  67.         $this->value $value;
  68.         return $this;
  69.     }
  70.     public function getPayinId(): ?string
  71.     {
  72.         return $this->payinId;
  73.     }
  74.     public function setPayinId(string $payinId): self
  75.     {
  76.         $this->payinId $payinId;
  77.         return $this;
  78.     }
  79.     public function getAbonnement(): ?Abonnement
  80.     {
  81.         return $this->abonnement;
  82.     }
  83.     public function setAbonnement(?Abonnement $abonnement): self
  84.     {
  85.         $this->abonnement $abonnement;
  86.         return $this;
  87.     }
  88.     public function getCreatedAt(): ?\DateTimeImmutable
  89.     {
  90.         return $this->createdAt;
  91.     }
  92.     public function setCreatedAt(\DateTimeImmutable $createdAt): self
  93.     {
  94.         $this->createdAt $createdAt;
  95.         return $this;
  96.     }
  97.     public function getStripeInvoiceID(): ?string
  98.     {
  99.         return $this->stripeInvoiceID;
  100.     }
  101.     public function setStripeInvoiceID(?string $stripeInvoiceID): self
  102.     {
  103.         $this->stripeInvoiceID $stripeInvoiceID;
  104.         return $this;
  105.     }
  106.     public function getStripeAmountPaid(): ?int
  107.     {
  108.         return $this->stripeAmountPaid;
  109.     }
  110.     public function setStripeAmountPaid(?int $stripeAmountPaid): self
  111.     {
  112.         $this->stripeAmountPaid $stripeAmountPaid;
  113.         return $this;
  114.     }
  115.     public function getStripeNumber(): ?string
  116.     {
  117.         return $this->stripeNumber;
  118.     }
  119.     public function setStripeNumber(?string $stripeNumber): self
  120.     {
  121.         $this->stripeNumber $stripeNumber;
  122.         return $this;
  123.     }
  124.     public function getHostedInvoiceUrl(): ?string
  125.     {
  126.         return $this->hostedInvoiceUrl;
  127.     }
  128.     public function setHostedInvoiceUrl(string $hostedInvoiceUrl): self
  129.     {
  130.         $this->hostedInvoiceUrl $hostedInvoiceUrl;
  131.         return $this;
  132.     }
  133.     public function isPaid(): ?bool
  134.     {
  135.         return $this->paid;
  136.     }
  137.     public function setPaid(bool $paid): self
  138.     {
  139.         $this->paid $paid;
  140.         return $this;
  141.     }
  142. }