PHP Class demo\Account

Inheritance: implements demo\AccountContractInterface
ファイルを表示 Open project: lisachenko/php-deal

Protected Properties

Property Type Description
$balance float Current balance

Public Methods

Method Description
deposit ( float $amount ) Deposits fixed amount of money to the account
getBalance ( ) : float Returns current balance

Method Details

deposit() public method

Deposits fixed amount of money to the account
public deposit ( float $amount )
$amount float

getBalance() public method

Returns current balance
public getBalance ( ) : float
return float

Property Details

$balance protected_oe property

Current balance
protected float $balance
return float