<?php
namespace App\Entity;
use App\Repository\CreditRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: CreditRepository::class)]
class Credit
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'smallint')]
private $amount;
#[ORM\Column(type: 'smallint')]
private $amountUsed;
#[ORM\Column(type: 'string', length: 10)]
private $status;
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 getAmountUsed(): ?int
{
return $this->amountUsed;
}
public function setAmountUsed(int $amountUsed): self
{
$this->amountUsed = $amountUsed;
return $this;
}
public function getStatus(): ?string
{
return $this->status;
}
public function setStatus(string $status): self
{
$this->status = $status;
return $this;
}
}