Class Misc
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\Misc
protected
|
|
protected
|
createRecordParser(),
parse(),
setComplexProperty(),
setComplexPropertySet(),
setRecordFactory(),
setXmlReader(),
setXmlString()
|
protected
string
|
$tagName | 'MISC' |
#
The <TAG> that a subclass parses |
protected
array
|
$simpleProperties | array(
'NAME' => 'setName',
'VERSION' => 'setVersion',
'TYPE' => 'setType',
'USE' => 'setUse',
'TIME' => 'setTime',
'AMOUNT' => 'setAmount',
'USE_FOR' => 'setUseFor',
'NOTES' => 'setNotes',
) |
#
Tags that map to simple values and the corresponding setter method on the record class |
$complexProperties,
$complexPropertySets,
$recordFactory,
$xmlReader
|