protected function getJobsByType($type, $afterIndex)
    {
        $afterIndex = $afterIndex === null ? -1 : $afterIndex;

        return $this->getJobs($this->connection()->zrange(
            $type, $afterIndex + 1, $afterIndex + 50
        ), $afterIndex + 1);
    }
protected function getJobsByType($type, $afterIndex)
    {
        $afterIndex = $afterIndex === null ? -1 : $afterIndex;

        return $this->getJobs($this->connection()->zrange(
            $type, $afterIndex + 1, $afterIndex + 50
        ), $afterIndex + 1);
    }
protected function getJobsByType ( $ type , $ afterIndex ) { $ afterIndex = $ afterIndex === null ? - 1 : $ afterIndex ; return $ this -> getJobs ( $ this -> connection ( ) -> zrange ( $ type , $ afterIndex + 1 , $ afterIndex + 50 ) , $ afterIndex + 1 ) ; }
Get a chunk of jobs from the given type set.

@param  string  $type
@param  string  $afterIndex
@return \Illuminate\Support\Collection
Get a chunk of jobs from the given type set .