Class Fermentable
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\Fermentable
public
|
|
protected
|
createRecordParser(),
parse(),
setComplexProperty(),
setComplexPropertySet(),
setRecordFactory(),
setXmlReader(),
setXmlString()
|
protected
string
|
$tagName | 'FERMENTABLE' |
#
The <TAG> that a subclass parses |
protected
array
|
$simpleProperties | array(
'NAME' => 'setName',
'VERSION' => 'setVersion',
'TYPE' => 'setType',
'AMOUNT' => 'setAmount',
'YIELD' => 'setYield',
'COLOR' => 'setColor',
'ORIGIN' => 'setOrigin',
'SUPPLIER' => 'setSupplier',
'NOTES' => 'setNotes',
'COARSE_FINE_DIFF' => 'setCoarseFineDiff',
'MOISTURE' => 'setMoisture',
'DIASTATIC_POWER' => 'setDiastaticPower',
'PROTEIN' => 'setProtein',
'MAX_IN_BATCH' => 'setMaxInBatch',
'IBU_GAL_PER_LB' => 'setIbuGalPerLb',
) |
#
Tags that map to simple values and the corresponding setter method on the record class |
$complexProperties,
$complexPropertySets,
$recordFactory,
$xmlReader
|