Class MashProfile
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\MashProfile
protected
|
|
protected
|
createRecordParser(),
parse(),
setComplexProperty(),
setComplexPropertySet(),
setRecordFactory(),
setXmlReader(),
setXmlString()
|
protected
string
|
$tagName | 'MASH' |
#
The <TAG> that a subclass parses |
protected
array
|
$simpleProperties | array(
'NAME' => 'setName',
'VERSION' => 'setVersion',
'GRAIN_TEMP' => 'setGrainTemp',
'NOTES' => 'setNotes',
'TUN_TEMP' => 'setTunTemp',
'SPARGE_TEMP' => 'setSpargeTemp',
'PH' => 'setPH',
'TUN_WEIGHT' => 'setTunWeight',
'TUN_SPECIFIC_HEAT' => 'setTunSpecificHeat',
) |
#
Tags that map to simple values and the corresponding setter method on the record class |
$complexProperties,
$complexPropertySets,
$recordFactory,
$xmlReader
|