Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
demo
Account
PHP Class demo\Account
Inheritance:
implements
demo\AccountContractInterface
Show file
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 property
Current balance
protected
float
$balance
return
float