public function limit($cnt, $shift = 0)
    {
        $data = array_slice($this->get(), $shift, $cnt, true);

        // put data back in generator
        $this->generator = new \ArrayIterator($data);

        return $this;
    }
public function limit($cnt, $shift = 0)
    {
        $data = array_slice($this->get(), $shift, $cnt, true);

        // put data back in generator
        $this->generator = new \ArrayIterator($data);

        return $this;
    }
public function limit ( $ cnt , $ shift = 0 ) { $ data = array_slice ( $ this -> get ( ) , $ shift , $ cnt , true ) ; // put data back in generator $ this -> generator = new \ ArrayIterator ( $ data ) ; return $ this ; }
Limit Iterator.

@param int $cnt
@param int $shift

@return $this
Limit Iterator .