1: <?php
 2: 
 3: 
 4: namespace BeerXML\Parser;
 5: 
 6: 
 7: class Water extends Record
 8: {
 9:     protected $tagName = 'WATER';
10: 
11:     12: 13: 14: 15: 
16:     protected $simpleProperties = array(
17:         'NAME'        => 'setName',
18:         'VERSION'     => 'setVersion',
19:         'AMOUNT'      => 'setAmount',
20:         'CALCIUM'     => 'setCalcium',
21:         'BICARBONATE' => 'setBicarbonate',
22:         'SULFATE'     => 'setSulfate',
23:         'CHLORIDE'    => 'setChloride',
24:         'SODIUM'      => 'setSodium',
25:         'MAGNESIUM'   => 'setMagnesium',
26:         'PH'          => 'setPH',
27:         'NOTES'       => 'setNotes',
28:     );
29: 
30:     31: 32: 
33:     protected function createRecord()
34:     {
35:         $water = $this->recordFactory->getWater();
36:         if ($water instanceof IWaterDisplay) {
37:             $this->simpleProperties = array_merge(
38:                 $this->simpleProperties,
39:                 array(
40:                     'DISPLAY_AMOUNT' => 'setDisplayAmount',
41:                 )
42:             );
43:         }
44:         return $water;
45:     }
46: }