public function setTime(TimeInterface $time): AlarmInterface
    {
        $this->attributes["StartTime"] = $time->asString();

        return $this->save();
    }
public function setTime(TimeInterface $time): AlarmInterface
    {
        $this->attributes["StartTime"] = $time->asString();

        return $this->save();
    }
public function setTime ( TimeInterface $ time ) : AlarmInterface { $ this -> attributes [ "StartTime" ] = $ time -> asString ( ) ; return $ this -> save ( ) ; }
Set the start time of the alarm.

@param TimeInterface $time The time to set the alarm for

@return $this
Set the start time of the alarm .