<?phpnamespace App\Entity;use App\Repository\PaymentRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=PaymentRepository::class) */class Payment{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="integer") */ private $amount; /** * @ORM\Column(type="datetime") */ private $createdAt; /** * @ORM\ManyToOne(targetEntity=CalendarEvent::class) */ private $calendarEvent; /** * @ORM\Column(type="text", nullable=true) */ private $comment; /** * @ORM\Column(type="datetime") */ private $dateTime; /** * @ORM\ManyToOne(targetEntity=User::class) * @ORM\JoinColumn(nullable=false) */ private $createdBy; /** * @ORM\ManyToOne(targetEntity=Person::class) * @ORM\JoinColumn(nullable=false) */ private $person; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $receiptFile; /** * @var string */ private $newReceiptFile; public function __construct() { $this->createdAt = new \DateTime(); // $this->dateTime = new \DateTime(); } public function getId(): ?int { return $this->id; } public function getAmount(): ?int { return $this->amount; } public function setAmount(int $amount): self { $this->amount = $amount; return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; } public function getCalendarEvent(): ?CalendarEvent { return $this->calendarEvent; } public function setCalendarEvent(?CalendarEvent $calendarEvent): self { $this->calendarEvent = $calendarEvent; return $this; } public function getComment(): ?string { return $this->comment; } public function setComment(?string $comment): self { $this->comment = $comment; return $this; } public function getDateTime(): ?\DateTimeInterface { return $this->dateTime; } public function setDateTime(\DateTimeInterface $dateTime): self { $this->dateTime = $dateTime; return $this; } public function getCreatedBy(): ?User { return $this->createdBy; } public function setCreatedBy(?User $createdBy): self { $this->createdBy = $createdBy; return $this; } public function getPerson(): ?Person { return $this->person; } public function setPerson(?Person $person): self { $this->person = $person; return $this; } public function getReceiptFile(): ?string { return $this->receiptFile; } public function setReceiptFile(?string $receiptFile): self { $this->receiptFile = $receiptFile; return $this; } public function getNewReceiptFile(): ?string { return $this->newReceiptFile; } public function setNewReceiptFile(?string $newReceiptFile): self { $this->newReceiptFile = $newReceiptFile; return $this; }}