| 1 | <?php |
||
| 9 | class Electricity extends Base implements IPacket |
||
| 10 | { |
||
| 11 | |||
| 12 | 7 | function __construct($data = NULL) |
|
| 32 | |||
| 33 | /* |
||
| 34 | * @parameter $data Array |
||
| 35 | */ |
||
| 36 | 6 | private function loadFromArray($data) |
|
| 46 | |||
| 47 | /* |
||
| 48 | * returns the Domain's type |
||
| 49 | */ |
||
| 50 | 1 | function getType() |
|
| 54 | |||
| 55 | /* |
||
| 56 | * returns the object id |
||
| 57 | */ |
||
| 58 | 1 | public function getId() |
|
| 62 | |||
| 63 | /* |
||
| 64 | * returns the Json representation of the object |
||
| 65 | */ |
||
| 66 | 1 | public function toJson() |
|
| 70 | |||
| 71 | } |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.