src/Entity/Rent.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\RentRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=RentRepository::class)
  8.  */
  9. class Rent
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\OneToOne(targetEntity=Rental::class, inversedBy="rent", cascade={"persist", "remove"})
  19.      * @ORM\JoinColumn(nullable=false)
  20.      */
  21.     private $rental;
  22.     /**
  23.      * @ORM\Column(type="datetime")
  24.      */
  25.     private $paymentDate;
  26.     /**
  27.      * @ORM\Column(type="boolean")
  28.      */
  29.     private $paid;
  30.     /**
  31.      * @ORM\Column(type="integer")
  32.      */
  33.     private $amountPaid;
  34.     /**
  35.      * @ORM\Column(type="integer")
  36.      */
  37.     private $amountRemaining;
  38.     /**
  39.      * @ORM\Column(type="string", length=1000)
  40.      */
  41.     private $comment;
  42.     /**
  43.      * @ORM\Column(type="string", length=255)
  44.      */
  45.     private $paymentMethod;
  46.     public function getId(): ?int
  47.     {
  48.         return $this->id;
  49.     }
  50.     public function getRental(): ?Rental
  51.     {
  52.         return $this->rental;
  53.     }
  54.     public function setRental(Rental $rental): self
  55.     {
  56.         $this->rental $rental;
  57.         return $this;
  58.     }
  59.     public function getPaymentDate(): ?\DateTimeInterface
  60.     {
  61.         return $this->paymentDate;
  62.     }
  63.     public function setPaymentDate(\DateTimeInterface $paymentDate): self
  64.     {
  65.         $this->paymentDate $paymentDate;
  66.         return $this;
  67.     }
  68.     public function isPaid(): ?bool
  69.     {
  70.         return $this->paid;
  71.     }
  72.     public function setPaid(bool $paid): self
  73.     {
  74.         $this->paid $paid;
  75.         return $this;
  76.     }
  77.     public function getAmountPaid(): ?int
  78.     {
  79.         return $this->amountPaid;
  80.     }
  81.     public function setAmountPaid(int $amountPaid): self
  82.     {
  83.         $this->amountPaid $amountPaid;
  84.         return $this;
  85.     }
  86.     public function getAmountRemaining(): ?int
  87.     {
  88.         return $this->amountRemaining;
  89.     }
  90.     public function setAmountRemaining(int $amountRemaining): self
  91.     {
  92.         $this->amountRemaining $amountRemaining;
  93.         return $this;
  94.     }
  95.     public function getComment(): ?string
  96.     {
  97.         return $this->comment;
  98.     }
  99.     public function setComment(string $comment): self
  100.     {
  101.         $this->comment $comment;
  102.         return $this;
  103.     }
  104.     public function getPaymentMethod(): ?string
  105.     {
  106.         return $this->paymentMethod;
  107.     }
  108.     public function setPaymentMethod(string $paymentMethod): self
  109.     {
  110.         $this->paymentMethod $paymentMethod;
  111.         return $this;
  112.     }
  113. }