protected function save(): AlarmInterface
    {
        $params = [
            "StartLocalTime"        =>  $this->attributes["StartTime"],
            "Duration"              =>  $this->attributes["Duration"],
            "Recurrence"            =>  $this->attributes["Recurrence"],
            "Enabled"               =>  $this->attributes["Enabled"] ? "1" : "0",
            "RoomUUID"              =>  $this->attributes["RoomUUID"],
            "ProgramURI"            =>  $this->attributes["ProgramURI"],
            "ProgramMetaData"       =>  $this->attributes["ProgramMetaData"],
            "PlayMode"              =>  $this->attributes["PlayMode"],
            "Volume"                =>  $this->attributes["Volume"],
            "IncludeLinkedZones"    =>  $this->attributes["IncludeLinkedZones"],
        ];

        $this->soap("AlarmClock", "UpdateAlarm", $params);

        return $this;
    }
protected function save(): AlarmInterface
    {
        $params = [
            "StartLocalTime"        =>  $this->attributes["StartTime"],
            "Duration"              =>  $this->attributes["Duration"],
            "Recurrence"            =>  $this->attributes["Recurrence"],
            "Enabled"               =>  $this->attributes["Enabled"] ? "1" : "0",
            "RoomUUID"              =>  $this->attributes["RoomUUID"],
            "ProgramURI"            =>  $this->attributes["ProgramURI"],
            "ProgramMetaData"       =>  $this->attributes["ProgramMetaData"],
            "PlayMode"              =>  $this->attributes["PlayMode"],
            "Volume"                =>  $this->attributes["Volume"],
            "IncludeLinkedZones"    =>  $this->attributes["IncludeLinkedZones"],
        ];

        $this->soap("AlarmClock", "UpdateAlarm", $params);

        return $this;
    }
protected function save ( ) : AlarmInterface { $ params = [ "StartLocalTime" => $ this -> attributes [ "StartTime" ] , "Duration" => $ this -> attributes [ "Duration" ] , "Recurrence" => $ this -> attributes [ "Recurrence" ] , "Enabled" => $ this -> attributes [ "Enabled" ] ? "1" : "0" , "RoomUUID" => $ this -> attributes [ "RoomUUID" ] , "ProgramURI" => $ this -> attributes [ "ProgramURI" ] , "ProgramMetaData" => $ this -> attributes [ "ProgramMetaData" ] , "PlayMode" => $ this -> attributes [ "PlayMode" ] , "Volume" => $ this -> attributes [ "Volume" ] , "IncludeLinkedZones" => $ this -> attributes [ "IncludeLinkedZones" ] , ] ; $ this -> soap ( "AlarmClock" , "UpdateAlarm" , $ params ) ; return $ this ; }
Update the alarm with the current instance settings.

@return $this
Update the alarm with the current instance settings .