src/Entity/PaymentRequest.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PaymentRequestRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassPaymentRequestRepository::class)]
  6. class PaymentRequest
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\Column(type'string'length255)]
  13.     private $amount;
  14.     #[ORM\OneToOne(targetEntityBooking::class, inversedBy'paymentRequest'cascade: ['persist''remove'])]
  15.     private $booking;
  16.     #[ORM\Column(type'datetime')]
  17.     private $createdAt;
  18.     #[ORM\Column(type'string'length255)]
  19.     private $status;
  20.     public function getId(): ?int
  21.     {
  22.         return $this->id;
  23.     }
  24.     public function getAmount(): ?string
  25.     {
  26.         return $this->amount;
  27.     }
  28.     public function setAmount(string $amount): self
  29.     {
  30.         $this->amount $amount;
  31.         return $this;
  32.     }
  33.     public function getBooking(): ?Booking
  34.     {
  35.         return $this->booking;
  36.     }
  37.     public function setBooking(?Booking $booking): self
  38.     {
  39.         $this->booking $booking;
  40.         return $this;
  41.     }
  42.     public function getCreatedAt(): ?\DateTimeInterface
  43.     {
  44.         return $this->createdAt;
  45.     }
  46.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  47.     {
  48.         $this->createdAt $createdAt;
  49.         return $this;
  50.     }
  51.     public function getStatus(): ?string
  52.     {
  53.         return $this->status;
  54.     }
  55.     public function setStatus(string $status): self
  56.     {
  57.         $this->status $status;
  58.         return $this;
  59.     }
  60. }