Tebe\Money
Class Money is a dead simple example for our PHP Unit Test.
Synopsis
class Money
{
- // members
- private $amount;
- // methods
- public void __construct()
- public float getAmount()
- public Money negate()
- public void addData()
Members
private
- $amount — float
Methods
public
- __construct() — Money constructor.
- addData() — Example for PMD ExcessiveParameterList.
- getAmount() — Get the amount.
- negate() — Get a Money object with the amount negated.