-
Notifications
You must be signed in to change notification settings - Fork 13
/
Generation.php
executable file
·34 lines (30 loc) · 1.04 KB
/
Generation.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
namespace KateMorley\Grid\State;
/** Represents details of power generation. */
class Generation extends Map {
public const COAL = 'coal';
public const GAS = 'gas';
public const SOLAR = 'solar';
public const WIND = 'wind';
public const HYDROELECTRIC = 'hydro';
public const NUCLEAR = 'nuclear';
public const BIOMASS = 'biomass';
public const KEYS = [
self::COAL => 'Coal',
self::GAS => 'Gas',
self::SOLAR => 'Solar',
self::WIND => 'Wind',
self::HYDROELECTRIC => 'Hydroelectric',
self::NUCLEAR => 'Nuclear',
self::BIOMASS => 'Biomass'
];
protected const KEY_COMPONENTS = [
self::COAL => ['coal'],
self::GAS => ['ocgt', 'ccgt'],
self::SOLAR => ['embedded_solar'],
self::WIND => ['embedded_wind', 'wind'],
self::HYDROELECTRIC => ['hydro'],
self::NUCLEAR => ['nuclear'],
self::BIOMASS => ['biomass']
];
}