public function BankAccount::depositMoney

Deposits an amount of money to the bank account.

Parameters

float $balance:

Throws

BankAccountException

File

drupal/core/vendor/phpunit/phpunit/Tests/_files/BankAccount.php, line 97

Class

BankAccount
A bank account.

Code

public function depositMoney($balance) {
  $this
    ->setBalance($this
    ->getBalance() + $balance);
  return $this
    ->getBalance();
}