Pheasant\Database\Mysqli\Fields::offsetGet PHP Method

offsetGet() public method

array access
public offsetGet ( $offset )
    public function offsetGet($offset)
    {
        if ($offset >= $this->_count) {
            throw new \OutOfRangeException("No field exists at offset {$offset}");
        }
        if (!isset($this->_fields[$offset])) {
            $this->_fields[$offset] = $this->_resultSet->fetch_field_direct($offset);
        }
        return $this->_fields[$offset];
    }