EventRegistration\Calculator
Calculates each attendee and total registration cost by passing them through all of the calculator components.
A composed component approach allows for sub-add-ons to influence
calculations.
Synopsis
class Calculator
{
- // members
- protected $registration;
- protected boolean $storeattendeecost = true;
- protected array $components = ;
- // methods
- public void __construct()
- public void setStoreAttendeeCost()
- public void calculate()
- protected static void defaultComponentNames()
- protected array initComponents()
Members
protected
- $components
- $registration
- $storeattendeecost
Methods
protected
- defaultComponentNames() — Create default calculator components
- initComponents() — Creates instances of components from component name strings