_parent = $parent; $this->_columnIndex = $columnIndex; } /** * Destructor */ public function __destruct() { unset($this->_parent); } /** * Get column index * * @return int */ public function getColumnIndex() { return $this->_columnIndex; } /** * Get cell iterator * * @param integer $startRow The row number at which to start iterating * @param integer $endRow Optionally, the row number at which to stop iterating * @return PHPExcel_Worksheet_CellIterator */ public function getCellIterator($startRow = 1, $endRow = null) { return new PHPExcel_Worksheet_ColumnCellIterator($this->_parent, $this->_columnIndex, $startRow, $endRow); } }