public function getSheet($sheetIndex = 0)
    {
        if (!isset($this->sheets[$sheetIndex])) {
            throw new \InvalidArgumentException(sprintf('No sheet with index %d defined', $sheetIndex));
        }

        return $this->sheets[$sheetIndex];
    }
public function getSheet($sheetIndex = 0)
    {
        if (!isset($this->sheets[$sheetIndex])) {
            throw new \InvalidArgumentException(sprintf('No sheet with index %d defined', $sheetIndex));
        }

        return $this->sheets[$sheetIndex];
    }
public function getSheet ( $ sheetIndex = 0 ) { if ( ! isset ( $ this -> sheets [ $ sheetIndex ] ) ) { throw new \ InvalidArgumentException ( sprintf ( 'No sheet with index %d defined' , $ sheetIndex ) ) ; } return $ this -> sheets [ $ sheetIndex ] ; }
Get a specific sheet, by sheetIndex

@param $sheetIndex
@return Sheet
Get a specific sheet by sheetIndex