src/Entity/CreditResult.php line 14
<?phpnamespace App\Entity;use App\Enum\CreditResultStatus;use App\Repository\CreditResultRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;use Gedmo\Timestampable\Traits\TimestampableEntity;#[ORM\Entity(repositoryClass: CreditResultRepository::class)]class CreditResult{use TimestampableEntity;#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(length: 255)]private ?string $resultName = null;#[ORM\Column(length: 255)]private ?string $personName = null;#[ORM\Column(length: 255)]private ?string $positionName = null;#[ORM\Column]private ?int $amount = null;#[ORM\ManyToOne(inversedBy: 'creditResult')]private ?Order $orderCode = null;#[ORM\ManyToOne(inversedBy: 'creditResult')]private ?Order $itemCode = null;#[ORM\ManyToOne(inversedBy: 'creditResult')]private ?CreditType $creditType = null;#[ORM\Column(length: 255, nullable: false)]private ?string $held = null;#[ORM\Column(length: 255, nullable: true)]private ?string $reasonCode = null;#[ORM\ManyToOne]#[ORM\JoinColumn(nullable: false)]private ?Rule $ruleName = null;#[ORM\Column(type: Types::DATETIME_MUTABLE)]private ?\DateTimeInterface $creationDate = null;public function getResultName(): ?string{return $this->resultName;}public function setResultName(string $resultName): static{$this->resultName = $resultName;return $this;}public function getPersonName(): ?string{return $this->personName;}public function setPersonName(string $personName): static{$this->personName = $personName;return $this;}public function getPositionName(): ?string{return $this->positionName;}public function setPositionName(string $positionName): static{$this->positionName = $positionName;return $this;}public function getAmount(): ?int{return $this->amount;}public function setAmount(int $amount): static{$this->amount = $amount;return $this;}public function getOrderCode(): ?Order{return $this->orderCode;}public function setOrderCode(?Order $orderCode): static{$this->orderCode = $orderCode;return $this;}public function getItemCode(): ?Order{return $this->itemCode;}public function setItemCode(?Order $itemCode): static{$this->itemCode = $itemCode;return $this;}public function getCreditType(): ?CreditType{return $this->creditType;}public function setCreditType(?CreditType $creditType): static{$this->creditType = $creditType;return $this;}public function getIsHeld(): ?string{return $this->held;}public function setHeld(string $held): static{$this->held = $held;return $this;}public function getReasonCode(): ?string{return $this->reasonCode;}public function setReasonCode(?string $reasonCode): static{$this->reasonCode = $reasonCode;return $this;}public function getRuleName(): ?Rule{return $this->ruleName;}public function setRuleName(?Rule $ruleName): static{$this->ruleName = $ruleName;return $this;}public function getCreationDate(): ?\DateTimeInterface{return $this->creationDate;}public function setCreationDate(\DateTimeInterface $creationDate): static{$this->creationDate = $creationDate;return $this;}}