Example #1
0
 /**
  * Create an instance of the Alarm class.
  *
  * @param XmlElement $xml The xml element with the relevant attributes
  * @param Network $network A Network instance this alarm is from
  */
 public function __construct(XmlElement $xml, Network $network)
 {
     $this->id = $xml->getAttribute("ID");
     $this->attributes = $xml->getAttributes();
     $this->network = $network;
 }