public function getFrequencyDescription(): string
    {
        $data = $this->attributes["Recurrence"];
        if ($data === "ONCE") {
            return "Once";
        }
        if ($data === "DAILY") {
            return "Daily";
        }
        if ($data === "WEEKDAYS") {
            return "Weekdays";
        }
        if ($data === "WEEKENDS") {
            return "Weekends";
        }

        $data = $this->getFrequency();
        $days = [
            AlarmInterface::MONDAY    =>  "Mon",
            AlarmInterface::TUESDAY   =>  "Tues",
            AlarmInterface::WEDNESDAY =>  "Wed",
            AlarmInterface::THURSDAY  =>  "Thurs",
            AlarmInterface::FRIDAY    =>  "Fri",
            AlarmInterface::SATURDAY  =>  "Sat",
            AlarmInterface::SUNDAY    =>  "Sun",
        ];
        $description = "";
        foreach ($days as $key => $val) {
            if ($data & $key) {
                if (strlen($description) > 0) {
                    $description .= ",";
                }
                $description .= $val;
            }
        }
        return $description;
    }
public function getFrequencyDescription(): string
    {
        $data = $this->attributes["Recurrence"];
        if ($data === "ONCE") {
            return "Once";
        }
        if ($data === "DAILY") {
            return "Daily";
        }
        if ($data === "WEEKDAYS") {
            return "Weekdays";
        }
        if ($data === "WEEKENDS") {
            return "Weekends";
        }

        $data = $this->getFrequency();
        $days = [
            AlarmInterface::MONDAY    =>  "Mon",
            AlarmInterface::TUESDAY   =>  "Tues",
            AlarmInterface::WEDNESDAY =>  "Wed",
            AlarmInterface::THURSDAY  =>  "Thurs",
            AlarmInterface::FRIDAY    =>  "Fri",
            AlarmInterface::SATURDAY  =>  "Sat",
            AlarmInterface::SUNDAY    =>  "Sun",
        ];
        $description = "";
        foreach ($days as $key => $val) {
            if ($data & $key) {
                if (strlen($description) > 0) {
                    $description .= ",";
                }
                $description .= $val;
            }
        }
        return $description;
    }
public function getFrequencyDescription ( ) : string { $ data = $ this -> attributes [ "Recurrence" ] ; if ( $ data === "ONCE" ) { return "Once" ; } if ( $ data === "DAILY" ) { return "Daily" ; } if ( $ data === "WEEKDAYS" ) { return "Weekdays" ; } if ( $ data === "WEEKENDS" ) { return "Weekends" ; } $ data = $ this -> getFrequency ( ) ; $ days = [ AlarmInterface :: MONDAY => "Mon" , AlarmInterface :: TUESDAY => "Tues" , AlarmInterface :: WEDNESDAY => "Wed" , AlarmInterface :: THURSDAY => "Thurs" , AlarmInterface :: FRIDAY => "Fri" , AlarmInterface :: SATURDAY => "Sat" , AlarmInterface :: SUNDAY => "Sun" , ] ; $ description = "" ; foreach ( $ days as $ key => $ val ) { if ( $ data & $ key ) { if ( strlen ( $ description ) > 0 ) { $ description .= "," ; } $ description .= $ val ; } } return $ description ; }
Get the frequency of the alarm as a human readable description.

@return string
Get the frequency of the alarm as a human readable description .