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:----u+k9v5yN9pemewdNrqsuYoIGz7p9AiLTE2Hj/TLva0Vig8bb3yqMLxKWey5DypbvgiRhyc19c/pybuylexTPlcoiS/E74VNqdrQmVIubXidXLiS5YCe+8ndKseO3cA7B/cSMqBBTvjBaiT9UPFzssxPD6vBlgaQrAK9nN7kNhYeBznN9XS0GGzHq51uz5Rdg3kyS2L0D9V2Ief3WUOB6LOKL1FCaGgspj6LuqdGgZmSUmiDzl+Xo0FHPgu8QRplQjHAuIG/PJ/c6q1u13IIRqA+yieVz36RJePhYPnhxG5EAKsELWFyEZeyhmyNUjPYnyUWCHTWlVeUtNajWnOhPnhIYTYtWAZImhrJe16dX3J+d/OCmbiEz6T6tv724Iqv9321DQNXCPc3ee2QfQYpxQwwXQrrSZ2FF5MENcstDUCIm5Ul2DyInfbMIdU8vRuvWxB0vzoc/0QW5xhI0qF+b6JGelDhA8OCpppQMGmf6Oo7mAWTNGYpPcEnvftPWz15QLYAs5QEvVUrqVb8qeMKaL4sOaS/pAH4jwN2n5vkSIkHfh3CACCqZiup8YNtx/CqbSEDqSLps7G5iqSxkJj3e5bdTB4FMKUOv8rdo16F913MaOlhHTmxY6oiy77M4wvG1azCjYSiW1TqyywpjcSaM8rCIjeR2dasK1d5LorQsDtQ=----ATTACHMENT:----OTYxNDIyNzY2NTMzNTE3NCA0NjAzMzY3MDM0ODA0MDQ4IDI4NzQ0MjQyNDQ4MjQ3NjI=