<?php
namespace 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="string", length=255)
*/
private $res;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $token;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $ref;
/**
* @ORM\Column(type="string", length=10, nullable=true)
*/
private $status;
/**
* @ORM\Column(type="datetime")
*/
private $created_at;
/**
* @ORM\ManyToOne(targetEntity=User::class, inversedBy="payments")
*/
private $created_by;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $traceNo;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $card;
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 getRes(): ?string
{
return $this->res;
}
public function setRes(string $res): self
{
$this->res = $res;
return $this;
}
public function getToken(): ?string
{
return $this->token;
}
public function setToken(?string $token): self
{
$this->token = $token;
return $this;
}
public function getRef(): ?string
{
return $this->ref;
}
public function setRef(?string $ref): self
{
$this->ref = $ref;
return $this;
}
public function getStatus(): ?string
{
return $this->status;
}
public function setStatus(?string $status): self
{
$this->status = $status;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->created_at;
}
public function setCreatedAt(\DateTimeInterface $created_at): self
{
$this->created_at = $created_at;
return $this;
}
public function getCreatedBy(): ?User
{
return $this->created_by;
}
public function setCreatedBy(?User $created_by): self
{
$this->created_by = $created_by;
return $this;
}
public function getTraceNo(): ?string
{
return $this->traceNo;
}
public function setTraceNo(?string $traceNo): self
{
$this->traceNo = $traceNo;
return $this;
}
public function getCard(): ?string
{
return $this->card;
}
public function setCard(?string $card): self
{
$this->card = $card;
return $this;
}
}