Class Water
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\Water
protected
|
protected
string
|
$tagName | 'WATER' |
#
The <TAG> that a subclass parses |
protected
array
|
$simpleProperties | array(
'NAME' => 'setName',
'VERSION' => 'setVersion',
'AMOUNT' => 'setAmount',
'CALCIUM' => 'setCalcium',
'BICARBONATE' => 'setBicarbonate',
'SULFATE' => 'setSulfate',
'CHLORIDE' => 'setChloride',
'SODIUM' => 'setSodium',
'MAGNESIUM' => 'setMagnesium',
'PH' => 'setPH',
'NOTES' => 'setNotes',
) |
#
Tags that map to simple values and the corresponding setter method on the record class |
$complexProperties,
$complexPropertySets,
$recordFactory,
$xmlReader
|