src/Entity/Refund.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\RefundRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=RefundRepository::class)
  7.  */
  8. class Refund
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity=User::class, inversedBy="refunds")
  18.      */
  19.     private $client;
  20.     /**
  21.      * @ORM\ManyToOne(targetEntity=CompagnyInfo::class, inversedBy="refunds")
  22.      */
  23.     private $provider;
  24.     /**
  25.      * @ORM\ManyToOne(targetEntity=Statut::class, inversedBy="refunds")
  26.      */
  27.     private $status;
  28.     /**
  29.      * @ORM\OneToOne(targetEntity=MangopayRefund::class, inversedBy="refund", cascade={"persist", "remove"})
  30.      */
  31.     private $mangopayRefund;
  32.     /**
  33.      * @ORM\Column(type="string", length=255, nullable=true)
  34.      */
  35.     private $numberRefund;
  36.     /**
  37.      * @ORM\Column(type="string", length=255, nullable=true)
  38.      */
  39.     private $filenameRefund;
  40.     /**
  41.      * @ORM\Column(type="text", nullable=true)
  42.      */
  43.     private $comment;
  44.     /**
  45.      * @ORM\Column(type="datetime", nullable=true)
  46.      */
  47.     private $dateRefund;
  48.     /**
  49.      * @ORM\ManyToOne(targetEntity=Billing::class, inversedBy="refunds")
  50.      */
  51.     private $billing;
  52.     /**
  53.      * @ORM\Column(type="decimal", precision=10, scale=0, nullable=true)
  54.      */
  55.     private $amountRefundHT;
  56.     /**
  57.      * @ORM\Column(type="decimal", precision=10, scale=0, nullable=true)
  58.      */
  59.     private $amountRefundTTC;
  60.     /**
  61.      * @ORM\ManyToOne(targetEntity=Tax::class, inversedBy="refunds")
  62.      */
  63.     private $tva;
  64.     public function getId(): ?int
  65.     {
  66.         return $this->id;
  67.     }
  68.     public function getClient(): ?User
  69.     {
  70.         return $this->client;
  71.     }
  72.     public function setClient(?User $client): self
  73.     {
  74.         $this->client $client;
  75.         return $this;
  76.     }
  77.     public function getProvider(): ?CompagnyInfo
  78.     {
  79.         return $this->provider;
  80.     }
  81.     public function setProvider(?CompagnyInfo $provider): self
  82.     {
  83.         $this->provider $provider;
  84.         return $this;
  85.     }
  86.     public function getStatus(): ?Statut
  87.     {
  88.         return $this->status;
  89.     }
  90.     public function setStatus(?Statut $status): self
  91.     {
  92.         $this->status $status;
  93.         return $this;
  94.     }
  95.     public function getMangopayRefund(): ?MangopayRefund
  96.     {
  97.         return $this->mangopayRefund;
  98.     }
  99.     public function setMangopayRefund(?MangopayRefund $mangopayRefund): self
  100.     {
  101.         $this->mangopayRefund $mangopayRefund;
  102.         return $this;
  103.     }
  104.     public function getNumberRefund(): ?string
  105.     {
  106.         return $this->numberRefund;
  107.     }
  108.     public function setNumberRefund(?string $numberRefund): self
  109.     {
  110.         $this->numberRefund $numberRefund;
  111.         return $this;
  112.     }
  113.     public function getFilenameRefund(): ?string
  114.     {
  115.         return $this->filenameRefund;
  116.     }
  117.     public function setFilenameRefund(?string $filenameRefund): self
  118.     {
  119.         $this->filenameRefund $filenameRefund;
  120.         return $this;
  121.     }
  122.     public function getComment(): ?string
  123.     {
  124.         return $this->comment;
  125.     }
  126.     public function setComment(?string $comment): self
  127.     {
  128.         $this->comment $comment;
  129.         return $this;
  130.     }
  131.     public function getDateRefund(): ?\DateTimeInterface
  132.     {
  133.         return $this->dateRefund;
  134.     }
  135.     public function setDateRefund(?\DateTimeInterface $dateRefund): self
  136.     {
  137.         $this->dateRefund $dateRefund;
  138.         return $this;
  139.     }
  140.     public function getBilling(): ?Billing
  141.     {
  142.         return $this->billing;
  143.     }
  144.     public function setBilling(?Billing $billing): self
  145.     {
  146.         $this->billing $billing;
  147.         return $this;
  148.     }
  149.     public function getAmountRefundHT(): ?string
  150.     {
  151.         return $this->amountRefundHT;
  152.     }
  153.     public function setAmountRefundHT(?string $amountRefundHT): self
  154.     {
  155.         $this->amountRefundHT $amountRefundHT;
  156.         return $this;
  157.     }
  158.     public function getAmountRefundTTC(): ?string
  159.     {
  160.         return $this->amountRefundTTC;
  161.     }
  162.     public function setAmountRefundTTC(?string $amountRefundTTC): self
  163.     {
  164.         $this->amountRefundTTC $amountRefundTTC;
  165.         return $this;
  166.     }
  167.     public function getTva(): ?Tax
  168.     {
  169.         return $this->tva;
  170.     }
  171.     public function setTva(?Tax $tva): self
  172.     {
  173.         $this->tva $tva;
  174.         return $this;
  175.     }
  176. }