public function getAlarms(): array
    {
        if (is_array($this->alarms)) {
            return $this->alarms;
        }

        $data = $this->getController()->soap("AlarmClock", "ListAlarms");
        $parser = new XmlParser($data["CurrentAlarmList"]);

        $alarms = [];
        foreach ($parser->getTags("Alarm") as $tag) {
            $alarms[] = new Alarm($tag, $this);
        }

        return $this->alarms = $alarms;
    }
public function getAlarms(): array
    {
        if (is_array($this->alarms)) {
            return $this->alarms;
        }

        $data = $this->getController()->soap("AlarmClock", "ListAlarms");
        $parser = new XmlParser($data["CurrentAlarmList"]);

        $alarms = [];
        foreach ($parser->getTags("Alarm") as $tag) {
            $alarms[] = new Alarm($tag, $this);
        }

        return $this->alarms = $alarms;
    }
public function getAlarms ( ) : array { if ( is_array ( $ this -> alarms ) ) { return $ this -> alarms ; } $ data = $ this -> getController ( ) -> soap ( "AlarmClock" , "ListAlarms" ) ; $ parser = new XmlParser ( $ data [ "CurrentAlarmList" ] ) ; $ alarms = [ ] ; foreach ( $ parser -> getTags ( "Alarm" ) as $ tag ) { $ alarms [ ] = new Alarm ( $ tag , $ this ) ; } return $ this -> alarms = $ alarms ; }
Get all the alarms available on the network.

@return AlarmInterface[]
Get all the alarms available on the network .