Class Style
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\Style
protected
|
protected
string
|
$tagName | 'STYLE' |
#
The <TAG> that a subclass parses |
protected
array
|
$simpleProperties | array(
'NAME' => 'setName',
'VERSION' => 'setVersion',
'CATEGORY' => 'setCategory',
'CATEGORY_NUMBER' => 'setCategoryNumber',
'STYLE_LETTER' => 'setStyleLetter',
'STYLE_GUIDE' => 'setStyleGuide',
'TYPE' => 'setType',
'OG_MIN' => 'setOgMin',
'OG_MAX' => 'setOgMax',
'FG_MIN' => 'setFgMin',
'FG_MAX' => 'setFgMax',
'IBU_MIN' => 'setIbuMin',
'IBU_MAX' => 'setIbuMax',
'COLOR_MIN' => 'setColorMin',
'COLOR_MAX' => 'setColorMax',
'ABV_MIN' => 'setAbvMin',
'ABV_MAX' => 'setAbvMax',
'CARB_MIN' => 'setCarbMin',
'CARB_MAX' => 'setCarbMax',
'NOTES' => 'setNotes',
'PROFILE' => 'setProfile',
'INGREDIENTS' => 'setIngredients',
'EXAMPLES' => 'setExamples',
) |
#
Tags that map to simple values and the corresponding setter method on the record class |
$complexProperties,
$complexPropertySets,
$recordFactory,
$xmlReader
|