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:----Ngu0hjobZt/cIMQpK4JWYdtO2qLQYDf+wx+HJvt5zFr6CYeJD+dE7cjvzQi6BYABxBda5ZJ7jvx+2/sesfZxvJoNbR2JIKbaGyyCYS9RqmUBr9RU9dSkQ9obvXoEaKEOAA+JZ9HSOz/N7mI0/uCR2YKyQOY9PkN8E0Z8U2q72QpdxcXhh05GUiS745xSevW80MqTR1taMHby+zrsokSsnESVIlX2631NY7EacLiTaD1s7sj6IJKrP/+e/eFxKeBFdtkW6YYyaIH4LFpf4Qa6GJysS763fUlG59VA9dclM9IlRDJyDtFORvUNM/mb+meFrKvPqk3c+qYYDcZ8JlhQNsq7sQoS7xVQhI2udfiDFrLoyRuMT3Wv6tv5fFHUBv35LO8I9JAEBe4gCRCshvsEt4Ta02WHxxSxIb1aPRpKx9e1vuRQFyYaigM+pWXICGYoi8DFGSCYoT3Fz+QDsEOL3abE23VsMwNvFoM64Z9KN57yCLfJT7A6kMobrGTU8Ryd8psxHEIrnTcpHRHLt+cMY33zTy8aYTYSDvEE+gxECbNdjbA/6CQNgjcNfzZo0wn+BDddaiMRrfAxte666xFZDxpctFrXi+v089kXyVj7HdXuPMf8wR/y90P5XllArcfBq2DfD0dz6kZMidSp8UqCA2E5TNkCSJXN/uq1PWcladM=----ATTACHMENT:----ODI4ODE3NjgwNzcyNDI3OSA0ODY3MDcyNjUxNjE0NzExIDM3Njg0NDQzMDIxMDczNjE=