<?php
namespace App\Entity;
use App\Repository\PaymentLogRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\Groups;
#[ORM\Entity(repositoryClass: PaymentLogRepository::class)]
class PaymentLog
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private ?int $id;
#[ORM\ManyToOne(targetEntity: Payment::class)]
#[Groups(['list'])]
private ?Payment $payment;
#[ORM\Column(type: 'string', length: 20)]
#[Groups(['list'])]
private ?string $state;
#[ORM\Column(type: 'string', length: 255)]
#[Groups(['list'])]
private ?string $note;
#[ORM\ManyToOne(targetEntity: User::class)]
#[Groups(['list'])]
private ?User $userCreated;
#[ORM\Column(type: 'datetime')]
#[Groups(['list'])]
private ?\DateTimeInterface $timeCreated;
public function getId(): ?int
{
return $this->id;
}
public function getState(): ?string
{
return $this->state;
}
public function setState(string $state): self
{
$this->state = $state;
return $this;
}
public function getNote(): ?string
{
return $this->note;
}
public function setNote(string $note): self
{
$this->note = $note;
return $this;
}
public function getTimeCreated(): ?\DateTimeInterface
{
return $this->timeCreated;
}
public function setTimeCreated(\DateTimeInterface $timeCreated): self
{
$this->timeCreated = $timeCreated;
return $this;
}
public function getPayment(): ?Payment
{
return $this->payment;
}
public function setPayment(?Payment $payment): self
{
$this->payment = $payment;
return $this;
}
public function getUserCreated(): ?User
{
return $this->userCreated;
}
public function setUserCreated(?User $userCreated): self
{
$this->userCreated = $userCreated;
return $this;
}
}