src/Entity/CreditResult.php line 14

  1. <?php
  2. namespace App\Entity;
  3. use App\Enum\CreditResultStatus;
  4. use App\Repository\CreditResultRepository;
  5. use Doctrine\Common\Collections\ArrayCollection;
  6. use Doctrine\Common\Collections\Collection;
  7. use Doctrine\DBAL\Types\Types;
  8. use Doctrine\ORM\Mapping as ORM;
  9. use Gedmo\Timestampable\Traits\TimestampableEntity;
  10. #[ORM\Entity(repositoryClassCreditResultRepository::class)]
  11. class CreditResult
  12. {
  13.     use TimestampableEntity;
  14.     #[ORM\Id]
  15.     #[ORM\GeneratedValue]
  16.     #[ORM\Column]
  17.     private ?int $id null;
  18.     #[ORM\Column(length255)]
  19.     private ?string $resultName null;
  20.     #[ORM\Column(length255)]
  21.     private ?string $personName null;
  22.     #[ORM\Column(length255)]
  23.     private ?string $positionName null;
  24.     #[ORM\Column]
  25.     private ?int $amount null;
  26.     #[ORM\ManyToOne(inversedBy'creditResult')]
  27.     private ?Order $orderCode null;
  28.     #[ORM\ManyToOne(inversedBy'creditResult')]
  29.     private ?Order $itemCode null;
  30.     #[ORM\ManyToOne(inversedBy'creditResult')]
  31.     private ?CreditType $creditType null;
  32.     #[ORM\Column(length255nullablefalse)]
  33.     private ?string $held null;
  34.     #[ORM\Column(length255nullabletrue)]
  35.     private ?string $reasonCode null;
  36.     #[ORM\ManyToOne]
  37.     #[ORM\JoinColumn(nullablefalse)]
  38.     private ?Rule $ruleName null;
  39.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  40.     private ?\DateTimeInterface $creationDate null;
  41.     public function getResultName(): ?string
  42.     {
  43.         return $this->resultName;
  44.     }
  45.     public function setResultName(string $resultName): static
  46.     {
  47.         $this->resultName $resultName;
  48.         return $this;
  49.     }
  50.     public function getPersonName(): ?string
  51.     {
  52.         return $this->personName;
  53.     }
  54.     public function setPersonName(string $personName): static
  55.     {
  56.         $this->personName $personName;
  57.         return $this;
  58.     }
  59.     public function getPositionName(): ?string
  60.     {
  61.         return $this->positionName;
  62.     }
  63.     public function setPositionName(string $positionName): static
  64.     {
  65.         $this->positionName $positionName;
  66.         return $this;
  67.     }
  68.     public function getAmount(): ?int
  69.     {
  70.         return $this->amount;
  71.     }
  72.     public function setAmount(int $amount): static
  73.     {
  74.         $this->amount $amount;
  75.         return $this;
  76.     }
  77.     public function getOrderCode(): ?Order
  78.     {
  79.         return $this->orderCode;
  80.     }
  81.     public function setOrderCode(?Order $orderCode): static
  82.     {
  83.         $this->orderCode $orderCode;
  84.         return $this;
  85.     }
  86.     public function getItemCode(): ?Order
  87.     {
  88.         return $this->itemCode;
  89.     }
  90.     public function setItemCode(?Order $itemCode): static
  91.     {
  92.         $this->itemCode $itemCode;
  93.         return $this;
  94.     }
  95.     public function getCreditType(): ?CreditType
  96.     {
  97.         return $this->creditType;
  98.     }
  99.     public function setCreditType(?CreditType $creditType): static
  100.     {
  101.         $this->creditType $creditType;
  102.         return $this;
  103.     }
  104.     public function getIsHeld(): ?string
  105.     {
  106.         return $this->held;
  107.     }
  108.     public function setHeld(string $held): static
  109.     {
  110.         $this->held $held;
  111.         return $this;
  112.     }
  113.     public function getReasonCode(): ?string
  114.     {
  115.         return $this->reasonCode;
  116.     }
  117.     public function setReasonCode(?string $reasonCode): static
  118.     {
  119.         $this->reasonCode $reasonCode;
  120.         return $this;
  121.     }
  122.     public function getRuleName(): ?Rule
  123.     {
  124.         return $this->ruleName;
  125.     }
  126.     public function setRuleName(?Rule $ruleName): static
  127.     {
  128.         $this->ruleName $ruleName;
  129.         return $this;
  130.     }
  131.     public function getCreationDate(): ?\DateTimeInterface
  132.     {
  133.         return $this->creationDate;
  134.     }
  135.     public function setCreationDate(\DateTimeInterface $creationDate): static
  136.     {
  137.         $this->creationDate $creationDate;
  138.         return $this;
  139.     }
  140. }