src/Entity/Payment.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PaymentRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=PaymentRepository::class)
  7.  */
  8. class Payment
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="integer")
  18.      */
  19.     private $amount;
  20.     /**
  21.      * @ORM\Column(type="datetime")
  22.      */
  23.     private $createdAt;
  24.     /**
  25.      * @ORM\ManyToOne(targetEntity=CalendarEvent::class)
  26.      */
  27.     private $calendarEvent;
  28.     /**
  29.      * @ORM\Column(type="text", nullable=true)
  30.      */
  31.     private $comment;
  32.     /**
  33.      * @ORM\Column(type="datetime")
  34.      */
  35.     private $dateTime;
  36.     /**
  37.      * @ORM\ManyToOne(targetEntity=User::class)
  38.      * @ORM\JoinColumn(nullable=false)
  39.      */
  40.     private $createdBy;
  41.     /**
  42.      * @ORM\ManyToOne(targetEntity=Person::class)
  43.      * @ORM\JoinColumn(nullable=false)
  44.      */
  45.     private $person;
  46.     /**
  47.      * @ORM\Column(type="string", length=255, nullable=true)
  48.      */
  49.     private $receiptFile;
  50.     /**
  51.      * @var string
  52.      */
  53.     private $newReceiptFile;
  54.     public function __construct()
  55.     {
  56.         $this->createdAt = new \DateTime();
  57.         // $this->dateTime = new \DateTime();
  58.     }
  59.     public function getId(): ?int
  60.     {
  61.         return $this->id;
  62.     }
  63.     public function getAmount(): ?int
  64.     {
  65.         return $this->amount;
  66.     }
  67.     public function setAmount(int $amount): self
  68.     {
  69.         $this->amount $amount;
  70.         return $this;
  71.     }
  72.     public function getCreatedAt(): ?\DateTimeInterface
  73.     {
  74.         return $this->createdAt;
  75.     }
  76.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  77.     {
  78.         $this->createdAt $createdAt;
  79.         return $this;
  80.     }
  81.     public function getCalendarEvent(): ?CalendarEvent
  82.     {
  83.         return $this->calendarEvent;
  84.     }
  85.     public function setCalendarEvent(?CalendarEvent $calendarEvent): self
  86.     {
  87.         $this->calendarEvent $calendarEvent;
  88.         return $this;
  89.     }
  90.     public function getComment(): ?string
  91.     {
  92.         return $this->comment;
  93.     }
  94.     public function setComment(?string $comment): self
  95.     {
  96.         $this->comment $comment;
  97.         return $this;
  98.     }
  99.     public function getDateTime(): ?\DateTimeInterface
  100.     {
  101.         return $this->dateTime;
  102.     }
  103.     public function setDateTime(\DateTimeInterface $dateTime): self
  104.     {
  105.         $this->dateTime $dateTime;
  106.         return $this;
  107.     }
  108.     public function getCreatedBy(): ?User
  109.     {
  110.         return $this->createdBy;
  111.     }
  112.     public function setCreatedBy(?User $createdBy): self
  113.     {
  114.         $this->createdBy $createdBy;
  115.         return $this;
  116.     }
  117.     public function getPerson(): ?Person
  118.     {
  119.         return $this->person;
  120.     }
  121.     public function setPerson(?Person $person): self
  122.     {
  123.         $this->person $person;
  124.         return $this;
  125.     }
  126.     public function getReceiptFile(): ?string
  127.     {
  128.         return $this->receiptFile;
  129.     }
  130.     public function setReceiptFile(?string $receiptFile): self
  131.     {
  132.         $this->receiptFile $receiptFile;
  133.         return $this;
  134.     }
  135.     public function getNewReceiptFile(): ?string
  136.     {
  137.         return $this->newReceiptFile;
  138.     }
  139.     public function setNewReceiptFile(?string $newReceiptFile): self
  140.     {
  141.         $this->newReceiptFile $newReceiptFile;
  142.         return $this;
  143.     }
  144. }