public function weekly($weekday = 0, $hour = 0, $minute = 0)
    {
        if (is_string($hour)) {
            $parts = explode(':', $hour);
            $hour = $parts[0];
            $minute = isset($parts[1]) ? $parts[1] : '0';
        }

        $c = $this->validateCronSequence($minute, $hour, null, null, $weekday);

        return $this->at("{$c['minute']} {$c['hour']} * * {$c['weekday']}");
    }
public function weekly($weekday = 0, $hour = 0, $minute = 0)
    {
        if (is_string($hour)) {
            $parts = explode(':', $hour);
            $hour = $parts[0];
            $minute = isset($parts[1]) ? $parts[1] : '0';
        }

        $c = $this->validateCronSequence($minute, $hour, null, null, $weekday);

        return $this->at("{$c['minute']} {$c['hour']} * * {$c['weekday']}");
    }
public function weekly ( $ weekday = 0 , $ hour = 0 , $ minute = 0 ) { if ( is_string ( $ hour ) ) { $ parts = explode ( ':' , $ hour ) ; $ hour = $ parts [ 0 ] ; $ minute = isset ( $ parts [ 1 ] ) ? $ parts [ 1 ] : '0' ; } $ c = $ this -> validateCronSequence ( $ minute , $ hour , null , null , $ weekday ) ; return $ this -> at ( "{$c['minute']} {$c['hour']} * * {$c['weekday']}" ) ; }
Set the execution time to once a week.

@param  int|string  $weekday
@param  int|string  $hour
@param  int|string  $minute
@return self
Set the execution time to once a week .