parent = $parent; $this->columnIndex = $columnIndex; } /** * Destructor */ public function __destruct() { unset($this->parent); } /** * Get column index * * @return string */ 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); } }