public function cron( $attempts = 3, $interval = 5 ) {
		if ( is_null( $this->cron ) ) {
			$this->cron	= new Cron( get_class( $this->connection ), $this->worker( $attempts ), $interval );
			$this->cron->init();
		}

		return $this->cron;
	}
public function cron( $attempts = 3, $interval = 5 ) {
		if ( is_null( $this->cron ) ) {
			$this->cron	= new Cron( get_class( $this->connection ), $this->worker( $attempts ), $interval );
			$this->cron->init();
		}

		return $this->cron;
	}
public function cron ( $ attempts = 3 , $ interval = 5 ) { if ( is_null ( $ this -> cron ) ) { $ this -> cron = new Cron ( get_class ( $ this -> connection ) , $ this -> worker ( $ attempts ) , $ interval ) ; $ this -> cron -> init ( ) ; } return $ this -> cron ; }
Create a cron worker.

@param int $attempts
@param int $interval

@return Cron
Create a cron worker .