src/Entity/PaymentCheck.php line 17
<?php/** @author Guerby Duval <info@tranzaksyon.com>* @link https://tranzaksyon.com* @copyright You are not allowed to remove this author "Guerby Duval <info@tranzaksyon.com>", the link "https://tranzaksyon.com" neither this copyright.*/namespace App\Entity;use App\Repository\PaymentCheckRepository;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\Serializer\Annotation\Groups;use Symfony\Component\Validator\Constraints\Length;use Symfony\Component\Validator\Constraints\NotBlank;#[ORM\Entity(repositoryClass: PaymentCheckRepository::class)]class PaymentCheck{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]#[Groups(['payment_check_out'])]private ?int $id = null;#[ORM\Column(length: 8)]#[NotBlank]#[Length(max: 8)]#[Groups(['payment_check_out', 'payment_check_in'])]private ?string $checkNumber = null;#[ORM\Column(length: 20)]#[NotBlank]#[Groups(['payment_check_out', 'payment_check_in'])]private ?string $checkBank = null;#[ORM\OneToOne(mappedBy: 'checkPayment', cascade: ['persist', 'remove'], orphanRemoval: true)]private ?SriPayment $sriPayment = null;public function getId(): ?int{return $this->id;}public function getCheckNumber(): ?string{return $this->checkNumber;}public function setCheckNumber(?string $checkNumber): static{$this->checkNumber = $checkNumber;return $this;}public function getCheckBank(): ?string{return $this->checkBank;}public function setCheckBank(?string $checkBank): static{$this->checkBank = $checkBank;return $this;}public function getSriPayment(): ?SriPayment{return $this->sriPayment;}public function setSriPayment(?SriPayment $sriPayment): static{// unset the owning side of the relation if necessaryif ($sriPayment === null && $this->sriPayment !== null) {$this->sriPayment->setCheckPayment(null);}// set the owning side of the relation if necessaryif ($sriPayment !== null && $sriPayment->getCheckPayment() !== $this) {$sriPayment->setCheckPayment($this);}$this->sriPayment = $sriPayment;return $this;}}