Overview

Namespaces

  • BeerXML
    • Exception
    • Generator
    • Parser
    • Record
  • PHP

Classes

  • Equipment
  • Fermentable
  • Hop
  • MashProfile
  • MashStep
  • Misc
  • Recipe
  • Record
  • Style
  • Water
  • Yeast

Interfaces

  • IEquipment
  • IEquipmentDisplay
  • IFermentable
  • IFermentableDisplay
  • IHop
  • IHopDisplay
  • IMashProfile
  • IMashProfileDisplay
  • IMashStep
  • IMashStepDisplay
  • IMisc
  • IMiscDisplay
  • IRecipe
  • IRecipeDisplay
  • IStyle
  • IStyleDisplay
  • IWater
  • IWaterDisplay
  • IYeast
  • IYeastDisplay
  • Overview
  • Namespace
  • Class
  • Tree
 1: <?php
 2: 
 3: 
 4: namespace BeerXML\Generator;
 5: 
 6: 
 7: class MashProfile extends Record
 8: {
 9:     protected $tagName = 'MASH';
10: 
11:     /**
12:      * @var \BeerXML\Record\MashProfile
13:      */
14:     protected $record;
15: 
16:     /**
17:      * <TAG> => getterMethod
18:      *
19:      * @var array
20:      */
21:     protected $simpleValues = array(
22:         'NAME'       => 'getName',
23:         'VERSION'    => 'getVersion',
24:         'GRAIN_TEMP' => 'getGrainTemp',
25:     );
26: 
27:     protected $optionalSimpleValues = array(
28:         'NOTES'             => 'getNotes',
29:         'TUN_TEMP'          => 'getTunTemp',
30:         'SPARGE_TEMP'       => 'getSpargeTemp',
31:         'PH'                => 'getPH',
32:         'TUN_WEIGHT'        => 'getTunWeight',
33:         'TUN_SPECIFIC_HEAT' => 'getTunSpecificHeat',
34:     );
35: 
36:     protected $complexValueSets = array(
37:         'MASH_STEPS' => array('generator' => 'BeerXML\Generator\MashStep', 'values' => 'getMashSteps'),
38:     );
39: 
40:     protected $displayInterface = 'BeerXML\Generator\IMashProfileDisplay';
41: 
42:     protected $displayValues = array(
43:         'DISPLAY_GRAIN_TEMP'  => 'getDisplayGrainTemp',
44:         'DISPLAY_TUN_TEMP'    => 'getDisplayTunTemp',
45:         'DISPLAY_SPARGE_TEMP' => 'getDisplaySpargeTemp',
46:         'DISPLAY_TUN_WEIGHT'  => 'getDisplayTunWeight',
47:     );
48: 
49:     /**
50:      * @{inheritDoc}
51:      */
52:     protected function additionalFields()
53:     {
54:         $this->xmlWriter->writeElement('EQUIP_ADJUST', $this->boolToString($this->record->getEquipAdjust()));
55:     }
56: 
57: }
php-beerxml API documentation generated by ApiGen 2.8.0