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:----cMJu33wnjPKdIzG5FHXpSo2V7l/J3TnCNn0s+Nbhbjqh2qmNm+4yCAwCMKFo/ZZdPq5Bdnr7RieTQF2r0ymrMyH0ylA75paWly8HW6z1KjSMuptjHtSf9ndyTwcNKIYsO/Oynwsew7Nr274i25+tvseUojCmSG6FqEYYqirt5SO8xi2w69NefrfpihKiHY5D4u7Qd3aIcqdkOfD5i/k6HMW/om/kw4AbcHoCy6mcRp/V4yQ37FWusyHSUktv6pYz8dDpr9G6vjmhaBUOtz+2ESbPV/myO0yJOGn4hlcpNrsxQc0uzA8rPcT2SAfBvMocVH9ZKrRScMgAN8rP03/J34kiJLdZk0bhGgTsN7cD0ajwDd7abbXefjFbgWhyaGd9+X1jiD879vTk6zbxYMSi3+t0k5kCP8kEdsE4IMgeQ6c3QZxnbYaZG185pBo29DWvV+wfKMLGPUeJjrXwCxtEEzQiSnfQJM2K5QpfNCMelQJSOTPp6ezbHTmS3AeJe8AePNU4jRVby5EAAspHzohnbEvo5kp+rINKqS8U13crL8zdR6yKCJ/ChUJNVL50AUMlhmBQHJJk5WVSkU9biLwNyH4uO/0RaFYh8mpjJEwsErqSTgaZEv49tudm5bUhG2YrHc8eJsOas5cmmnNCJ612lsA7Q/rDW6y7mHv9x787Xr8=----ATTACHMENT:----MTIzNTM5NjEzMDM1NDI4NiA0MDY0NzQzMzkzNzI3MDE3IDMzMjM2MjIwODQzOTMwNDM=