1: <?php
2:
3:
4: namespace BeerXML\Parser;
5:
6:
7: class MashStep extends Record
8: {
9: protected $tagName = 'MASH_STEP';
10:
11: 12: 13: 14: 15:
16: protected $simpleProperties = array(
17: 'NAME' => 'setName',
18: 'VERSION' => 'setVersion',
19: 'TYPE' => 'setType',
20: 'INFUSE_AMOUNT' => 'setInfuseAmount',
21: 'STEP_TEMP' => 'setStepTemp',
22: 'STEP_TIME' => 'setStepTime',
23: 'RAMP_TIME' => 'setRampTime',
24: 'END_TEMP' => 'setEndTemp',
25: );
26:
27: 28: 29:
30: protected function createRecord()
31: {
32: $mashStep = $this->recordFactory->getMashStep();
33: if ($mashStep instanceof IMashStepDisplay) {
34: $this->simpleProperties = array_merge(
35: $this->simpleProperties,
36: array(
37: 'DESCRIPTION' => 'setDescription',
38: 'WATER_GRAIN_RATIO' => 'setWaterGrainRatio',
39: 'DECOCTION_AMT' => 'setDecoctionAmt',
40: 'INFUSE_TEMP' => 'setInfuseTemp',
41: 'DISPLAY_STEP_TEMP' => 'setDisplayStepTemp',
42: 'DISPLAY_INFUSE_AMT' => 'setDisplayInfuseAmt',
43: )
44: );
45: }
46: return $mashStep;
47: }
48: }