Class Hop
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\Hop
protected
|
protected
string
|
$tagName | 'HOP' |
#
The <TAG> that a subclass parses |
protected
array
|
$simpleProperties | array(
'NAME' => 'setName',
'VERSION' => 'setVersion',
'ALPHA' => 'setAlpha',
'AMOUNT' => 'setAmount',
'USE' => 'setUse',
'TIME' => 'setTime',
'NOTES' => 'setNotes',
'TYPE' => 'setType',
'FORM' => 'setForm',
'BETA' => 'setBeta',
'HSI' => 'setHsi',
'ORIGIN' => 'setOrigin',
'SUBSTITUTES' => 'setSubstitutes',
'HUMULENE' => 'setHumulene',
'CARYOPHYLLENE' => 'setCaryophyllene',
'COHUMULONE' => 'setCohumulone',
'MYRCENE' => 'setMyrcene',
) |
#
Tags that map to simple values and the corresponding setter method on the record class |
$complexProperties,
$complexPropertySets,
$recordFactory,
$xmlReader
|