Class Equipment
Abstract Record Parser
This sets the stage for all of our parsers. Each subclass can define a map of tags to setter methods. The parser will then call the setter methods with the values from those tags.
- BeerXML\Parser\Record
- BeerXML\Parser\Equipment
protected
|
|
protected
|
createRecordParser(),
parse(),
setComplexProperty(),
setComplexPropertySet(),
setRecordFactory(),
setXmlReader(),
setXmlString()
|
protected
string
|
$tagName | 'EQUIPMENT' |
#
The <TAG> that a subclass parses |
protected
array
|
$simpleProperties | array(
'NAME' => 'setName',
'VERSION' => 'setVersion',
'BOIL_SIZE' => 'setBoilSize',
'BATCH_SIZE' => 'setBatchSize',
'TUN_VOLUME' => 'setTunVolume',
'TUN_WEIGHT' => 'setTunWeight',
'TUN_SPECIFIC_HEAT' => 'setTunSpecificHeat',
'TOP_UP_WATER' => 'setTopUpWater',
'TRUB_CHILLER_LOSS' => 'setTrubChillerLoss',
'EVAP_RATE' => 'setEvapRate',
'BOIL_TIME' => 'setBoilTime',
'LAUTER_DEADSPACE' => 'setLauterDeadspace',
'TOP_UP_KETTLE' => 'setTopUpKettle',
'HOP_UTILIZATION' => 'setHopUtilization',
'NOTES' => 'setNotes',
) |
#
Tags that map to simple values and the corresponding setter method on the record class |
$complexProperties,
$complexPropertySets,
$recordFactory,
$xmlReader
|