public function BankAccount::withdrawMoney

Withdraws an amount of money from the bank account.

Parameters

float $balance:

Throws

BankAccountException

File

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

Class

BankAccount
A bank account.

Code

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