public function get($index = 0)
        {
            if (is_integer($index)) {
                if ($index + 1 > $this->count()) {
                    return null;
                } else {
                    return Arrays::first(array_slice($this->_items, $index, 1));
                }
            } else {
                if ($this->has($index)) {
                    return $this->_items[$index];
                }
            }

            return null;
        }
public function get($index = 0)
        {
            if (is_integer($index)) {
                if ($index + 1 > $this->count()) {
                    return null;
                } else {
                    return Arrays::first(array_slice($this->_items, $index, 1));
                }
            } else {
                if ($this->has($index)) {
                    return $this->_items[$index];
                }
            }

            return null;
        }
public function get ( $ index = 0 ) { if ( is_integer ( $ index ) ) { if ( $ index + 1 > $ this -> count ( ) ) { return null ; } else { return Arrays :: first ( array_slice ( $ this -> _items , $ index , 1 ) ) ; } } else { if ( $ this -> has ( $ index ) ) { return $ this -> _items [ $ index ] ; } } return null ; }
Get item by numeric index

@param int $index model to get

@return Model
Get item by numeric index