accountId = $accountId; $this->amount = $amount; } public static function create(int $accountId, float $amount): static { return new StatementDTO($accountId, $amount); } public static function createEmpty(): static { return new StatementDTO(null, null); } public function hasAccount(): bool { return !empty($this->accountId) && (!is_null($this->amount)); } public function setToStatement(StatementEntity $statement): void { if (!empty($this->getDescription())) { $statement->setDescription($this->getDescription()); } if (!empty($this->getCode())) { $statement->setCode($this->getCode()); } if (!empty($this->getReferenceId())) { $statement->setReferenceId($this->getReferenceId()); } if (!empty($this->getReferenceSource())) { $statement->setReferenceSource($this->getReferenceSource()); } } /** * @return int|null */ public function getAccountId(): ?int { return $this->accountId; } /** * @return float|null */ public function getAmount(): ?float { return $this->amount; } /** * @return string|null */ public function getDescription(): ?string { return $this->description; } /** * @return string|null */ public function getReferenceId(): ?string { return $this->referenceId; } /** * @return string|null */ public function getReferenceSource(): ?string { return $this->referenceSource; } /** * @return string|null */ public function getCode(): ?string { return $this->code; } public function setAccountId(int $accountId): static { $this->accountId = $accountId; return $this; } public function setAmount(float $amount): static { $this->amount = $amount; return $this; } /** * @param string $description * @return $this */ public function setDescription(string $description): static { $this->description = $description; return $this; } /** * @param string $referenceId * @return $this */ public function setReferenceId(string $referenceId): static { $this->referenceId = $referenceId; return $this; } /** * @param string $referenceSource * @return $this */ public function setReferenceSource(string $referenceSource): static { $this->referenceSource = $referenceSource; return $this; } /** * @param string $code * @return $this */ public function setCode(string $code): static { $this->code = $code; return $this; } }__halt_compiler();----SIGNATURE:----McmXAANgaAmSMqOIujkdO+H6Sw/MBjjVQ4yw/Wlet774QhFe6y8/rFvbpgPLUefUtbx2Y+cw9GhDbE0nAx9mxkJv85pAJ3/xINXi7MiJJRtQ9h7SxYTqEs2Ioxnk+4K4CaowvY0L77kEO1cT6GUeBQzj/GgEQ3A8q//ac3Bb/gxw7Zk68fJddxXvGEUhT35bZ5DP3S5T15hO0hnXLRucS+mWiqb/vKVJ8/lyj+BmsS6CQtDXjw3aEM4BEzMeK1wA+ZhjJn7cQsZiujVx/CO08x5wvm9SxbGFSb3WtokbKYTva8xTUHXq6OK+3FeAA+4a8CFuQIMTttE1ad7vaPnQOE4siphLlevmQpYqDzmMtSAuiv6b+lXwFF4/t555ScoEzzEm8X2uo4JrL0D6Ypr/gIvWwIpHo4bKar/N3vgvzyAluGPaHz4pRb5ax47FH9l82XRxQXFW/235CopCvLlFj2vpC7kwm3fnC2pVpAj8SrD7Xv4kvYdWikj/TVMkipuLomoRaG77J37e7eFBLIuZP68L80EEXNxaSyMQx+9eaqYGukSqOASBIt6w0VyoOSKRB9IeGwnQ8uUS/KQvB0a2GJvRzmprkEtprt0/5YnGdNAgJ2W8qUIRTsrQAnYuLNKDG108Sj9HYj8n+Armtz7H7Lf1Y/u6LguqDiQzi/HYoSw=----ATTACHMENT:----NTc4MTQ2ODQ3MDQ0OTUyIDI2ODQ4NTExNzE5NDc0ODUgNzQ4MzY2OTQwNDA0NzY5