statementid; } /** * @return int|null */ public function getAccountId(): ?int { return $this->accountid; } /** * @return string|null */ public function getTypeId(): ?string { return $this->typeid; } /** * @return float|string|int|null */ public function getAmount(): float|string|int|null { return $this->amount; } /** * @return float|string|int|null */ public function getPrice(): float|string|int|null { return $this->price; } /** * @return string|null */ public function getDate(): ?string { return $this->date; } /** * @return float|string|int|null */ public function getGrossBalance(): float|string|int|null { return $this->grossbalance; } /** * @return float|string|int|null */ public function getUnCleared(): float|string|int|null { return $this->uncleared; } /** * @return float|string|int|null */ public function getNetBalance(): float|string|int|null { return $this->netbalance; } /** * @return string|null */ public function getCode(): ?string { return $this->code; } /** * @return string|null */ public function getDescription(): ?string { return $this->description; } /** * @return int|null */ public function getStatementParentId(): ?int { return $this->statementparentid; } /** * @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 getAccountTypeId(): ?string { return $this->accounttypeid; } public function setStatementId(?int $statementid): void { $this->statementid = $statementid; } public function setAccountId(?int $accountid): void { $this->accountid = $accountid; } public function setTypeId(?string $typeid): void { $this->typeid = $typeid; } public function setAmount(float|string|int|null $amount): void { $this->amount = $amount; } public function setPrice(float|string|int|null $price): void { $this->price = $price; } public function setDate(?string $date): void { $this->date = $date; } public function setGrossBalance(float|string|int|null $grossbalance): void { $this->grossbalance = $grossbalance; } public function setUnCleared(float|string|int|null $uncleared): void { $this->uncleared = $uncleared; } public function setNetBalance(float|string|int|null $netbalance): void { $this->netbalance = $netbalance; } public function setCode(?string $code): void { $this->code = $code; } public function setDescription(?string $description): void { $this->description = $description; } public function setStatementParentId(?int $statementparentid): void { $this->statementparentid = $statementparentid; } public function setAccountTypeId(?string $accounttypeid): void { $this->accounttypeid = $accounttypeid; } public function setReferenceId(?string $referenceid): void { $this->referenceid = $referenceid; } public function setReferenceSource(?string $referencesource): void { $this->referencesource = $referencesource; } public function attachAccount(AccountEntity $account) { $this->setAccountId($account->getAccountId()); $this->setAccountTypeId($account->getAccountTypeId()); $this->setGrossBalance($account->getGrossBalance()); $this->setNetBalance($account->getNetBalance()); $this->setUnCleared($account->getUnCleared()); $this->setPrice($account->getPrice()); $this->account = $account; } /** * @throws AmountException * @throws AmountException */ public function validate() { if ($this->getAmount() < 0) { throw new AmountException('Amount não pode ser menor que zero'); } if (empty($this->account)) { return; } if ($this->getNetBalance() < $this->account->getMinValue() || $this->getGrossBalance() < $this->account->getMinValue() || $this->getUnCleared() < $this->account->getMinValue() ) { throw new AmountException('Valor não pode ser menor que ' . $this->account->getMinValue()); } } }__halt_compiler();----SIGNATURE:----1vGN4KjAnGuypJYXA6LleUK0w1CawrKckNuVqvRqYLxIDY1RdllylafAzGF9Q/v+hpk6AGbhu8FopeBZYP7hDijgP0OvbC5IQrMjzsGQEdeESiEQqVSCs9eZHmbyzi8lUCCZTaq3/PFEFEk7A91yr3uVkioW5l1kNlZHRdFcXUiNSTJblF6pGODAt3Rw7hsZ7zoQ/WMEEbHC8oqlS7HLGiaphZaQlJDsTl1wd04wR77e+nMJgRlc9nHAR0toEJUIn0DMZMuAmYCbp5VP6umZQMh0UzIRxnUSgxB60irUK6lUq9EnbjI+gzhdW0OZVBy3Z7/5F+QGx4ZM90pZeXDSh+P7thJWjRt0r7bEUddaPBqGgfQz/OGj11xZR1LOmrrBaCsz/yUV1CJMZOVKBCQs4zT+qz4ezjKkfJG6b74Z7Pywt7c3qzranL0JUCVrUausRV/oWoQZsqASJI6Oi7oi5vEPQFX+pGWiCvUvjXpiB0219HlBZUZCMrHtZAQmHg26/juGVNGxqOdLBoTor+oKTz7fsUP1OwonWgkRGBn4lQfhpRiTGWwxKZzN3cqlD2yP6CJ3jrxDcF1+72Ze9aDqt3gXWRcfCqXMJDNPDoEVgNt6iLIYp93xZvAvtRm+igbeG//BIqbEcX7pSbwkhJad8/x9Wg5CM9OffTElY3i5GFU=----ATTACHMENT:----OTQxODg2NDM2MDg1NzY1MSA5NTc0OTc3OTUzMTA3OTY3IDE1MTY1MjE5MDgzMDkxNzg=