Class Yeast
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\Yeast
protected
|
|
protected
|
createRecordParser(),
parse(),
setComplexProperty(),
setComplexPropertySet(),
setRecordFactory(),
setXmlReader(),
setXmlString()
|
protected
string
|
$tagName | 'YEAST' |
#
The <TAG> that a subclass parses |
protected
array
|
$simpleProperties | array(
'NAME' => 'setName',
'VERSION' => 'setVersion',
'TYPE' => 'setType',
'FORM' => 'setForm',
'AMOUNT' => 'setAmount',
'LABORATORY' => 'setLaboratory',
'PRODUCT_ID' => 'setProductId',
'MIN_TEMPERATURE' => 'setMinTemperature',
'FLOCCULATION' => 'setFlocculation',
'ATTENUATION' => 'setAttenuation',
'NOTES' => 'setNotes',
'BEST_FOR' => 'setBestFor',
'TIMES_CULTURED' => 'setTimesCultured',
'MAX_REUSE' => 'setMaxReuse',
'MAX_TEMPERATURE' => 'setMaxTemperature',
) |
#
Tags that map to simple values and the corresponding setter method on the record class |
$complexProperties,
$complexPropertySets,
$recordFactory,
$xmlReader
|