src/Entity/PaymentLog.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PaymentLogRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Symfony\Component\Serializer\Annotation\Groups;
  7. #[ORM\Entity(repositoryClassPaymentLogRepository::class)]
  8. class PaymentLog
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column(type'integer')]
  13.     private ?int $id;
  14.     #[ORM\ManyToOne(targetEntityPayment::class)]
  15.     #[Groups(['list'])]
  16.     private ?Payment $payment;
  17.     #[ORM\Column(type'string'length20)]
  18.     #[Groups(['list'])]
  19.     private ?string $state;
  20.     #[ORM\Column(type'string'length255)]
  21.     #[Groups(['list'])]
  22.     private ?string $note;
  23.     #[ORM\ManyToOne(targetEntityUser::class)]
  24.     #[Groups(['list'])]
  25.     private ?User $userCreated;
  26.     #[ORM\Column(type'datetime')]
  27.     #[Groups(['list'])]
  28.     private ?\DateTimeInterface $timeCreated;
  29.     public function getId(): ?int
  30.     {
  31.         return $this->id;
  32.     }
  33.     public function getState(): ?string
  34.     {
  35.         return $this->state;
  36.     }
  37.     public function setState(string $state): self
  38.     {
  39.         $this->state $state;
  40.         return $this;
  41.     }
  42.     public function getNote(): ?string
  43.     {
  44.         return $this->note;
  45.     }
  46.     public function setNote(string $note): self
  47.     {
  48.         $this->note $note;
  49.         return $this;
  50.     }
  51.     public function getTimeCreated(): ?\DateTimeInterface
  52.     {
  53.         return $this->timeCreated;
  54.     }
  55.     public function setTimeCreated(\DateTimeInterface $timeCreated): self
  56.     {
  57.         $this->timeCreated $timeCreated;
  58.         return $this;
  59.     }
  60.     public function getPayment(): ?Payment
  61.     {
  62.         return $this->payment;
  63.     }
  64.     public function setPayment(?Payment $payment): self
  65.     {
  66.         $this->payment $payment;
  67.         return $this;
  68.     }
  69.     public function getUserCreated(): ?User
  70.     {
  71.         return $this->userCreated;
  72.     }
  73.     public function setUserCreated(?User $userCreated): self
  74.     {
  75.         $this->userCreated $userCreated;
  76.         return $this;
  77.     }
  78. }