file-fetcher
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
BankAccount Class Reference

Detailed Description

A bank account.

Public Member Functions

 getBalance ()
 
 depositMoney ($balance)
 
 withdrawMoney ($balance)
 
 getBalance ()
 
 depositMoney ($balance)
 
 withdrawMoney ($balance)
 

Protected Member Functions

 setBalance ($balance)
 
 setBalance ($balance)
 

Protected Attributes

 $balance = 0
 

Member Function Documentation

◆ depositMoney() [1/2]

BankAccount::depositMoney (   $balance)

◆ depositMoney() [2/2]

BankAccount::depositMoney (   $balance)

Deposits an amount of money to the bank account.

Parameters
float$balance
Exceptions
BankAccountException

◆ getBalance() [1/2]

BankAccount::getBalance ( )

◆ getBalance() [2/2]

BankAccount::getBalance ( )

Returns the bank account's balance.

Returns
float

◆ setBalance() [1/2]

BankAccount::setBalance (   $balance)
protected

◆ setBalance() [2/2]

BankAccount::setBalance (   $balance)
protected

Sets the bank account's balance.

Parameters
float$balance
Exceptions
BankAccountException

◆ withdrawMoney() [1/2]

BankAccount::withdrawMoney (   $balance)

◆ withdrawMoney() [2/2]

BankAccount::withdrawMoney (   $balance)

Withdraws an amount of money from the bank account.

Parameters
float$balance
Exceptions
BankAccountException

Member Data Documentation

◆ $balance

BankAccount::$balance = 0
protected

The documentation for this class was generated from the following file: