src/Entity/Credit.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CreditRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassCreditRepository::class)]
  6. class Credit
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\Column(type'smallint')]
  13.     private $amount;
  14.     #[ORM\Column(type'smallint')]
  15.     private $amountUsed;
  16.     #[ORM\Column(type'string'length10)]
  17.     private $status;
  18.     public function getId(): ?int
  19.     {
  20.         return $this->id;
  21.     }
  22.     public function getAmount(): ?int
  23.     {
  24.         return $this->amount;
  25.     }
  26.     public function setAmount(int $amount): self
  27.     {
  28.         $this->amount $amount;
  29.         return $this;
  30.     }
  31.     public function getAmountUsed(): ?int
  32.     {
  33.         return $this->amountUsed;
  34.     }
  35.     public function setAmountUsed(int $amountUsed): self
  36.     {
  37.         $this->amountUsed $amountUsed;
  38.         return $this;
  39.     }
  40.     public function getStatus(): ?string
  41.     {
  42.         return $this->status;
  43.     }
  44.     public function setStatus(string $status): self
  45.     {
  46.         $this->status $status;
  47.         return $this;
  48.     }
  49. }