src/Entity/PaymentCreditQuote.php line 17

  1. <?php
  2. /*
  3.  *  @author Guerby Duval <info@tranzaksyon.com>
  4.  *  @link https://tranzaksyon.com
  5.  *  @copyright You are not allowed to remove this author "Guerby Duval <info@tranzaksyon.com>", the link "https://tranzaksyon.com" neither this copyright.
  6.  */
  7. namespace App\Entity;
  8. use App\Repository\PaymentCreditQuoteRepository;
  9. use Doctrine\DBAL\Types\Types;
  10. use Doctrine\ORM\Mapping as ORM;
  11. use Symfony\Component\Serializer\Annotation\Groups;
  12. use Symfony\Component\Validator\Constraints\NotBlank;
  13. #[ORM\Entity(repositoryClassPaymentCreditQuoteRepository::class)]
  14. class PaymentCreditQuote
  15. {
  16.     #[ORM\Id]
  17.     #[ORM\GeneratedValue]
  18.     #[ORM\Column]
  19.     #[Groups(['payment_credit_quote_out'])]
  20.     private ?int $id null;
  21.     #[ORM\Column(typeTypes::DECIMALprecision19scale4)]
  22.     #[NotBlank]
  23.     #[Groups(['payment_credit_quote_out''payment_credit_quote_in'])]
  24.     private ?string $amount null;
  25.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  26.     #[Groups(['payment_credit_quote_out''payment_credit_quote_in'])]
  27.     private ?\DateTimeInterface $expirationDate null;
  28.     #[ORM\ManyToOne(inversedBy'quotes')]
  29.     #[ORM\JoinColumn(nullablefalse)]
  30.     private ?PaymentCredit $credit null;
  31.     public function getId(): ?int
  32.     {
  33.         return $this->id;
  34.     }
  35.     public function getAmount(): ?string
  36.     {
  37.         return $this->amount;
  38.     }
  39.     public function setAmount(?string $amount): static
  40.     {
  41.         $this->amount $amount;
  42.         return $this;
  43.     }
  44.     public function getExpirationDate(): ?\DateTimeInterface
  45.     {
  46.         return $this->expirationDate;
  47.     }
  48.     public function setExpirationDate(?\DateTimeInterface $expirationDate): static
  49.     {
  50.         $this->expirationDate $expirationDate;
  51.         return $this;
  52.     }
  53.     public function getCredit(): ?PaymentCredit
  54.     {
  55.         return $this->credit;
  56.     }
  57.     public function setCredit(?PaymentCredit $credit): static
  58.     {
  59.         $this->credit $credit;
  60.         return $this;
  61.     }
  62. }