1 | <?php |
||
13 | class ElectricityXMLParser implements IParser |
||
14 | { |
||
15 | private $xmlElement; |
||
16 | |||
17 | /* |
||
18 | * sets the XMLElement containing packet's data |
||
19 | * @parameter \SimpleXMLElement $xmlElement |
||
20 | */ |
||
21 | 3 | public function setXMLElement(\SimpleXMLElement $xmlElement) |
|
25 | |||
26 | /* |
||
27 | * returns the Electricity implementation of IPacket |
||
28 | */ |
||
29 | 2 | public function parse() |
|
59 | } |
||
60 |