ExcelAnt\Adapter\PhpExcel\Workbook\Workbook::checkIndexParameter PHP Method

checkIndexParameter() private method

Check if the index parameter used by many method to handle the sheetCollection answers the requirements
private checkIndexParameter ( integer $index )
$index integer Numeric index of the sheetCollection
    private function checkIndexParameter($index)
    {
        if (false === filter_var($index, FILTER_VALIDATE_INT)) {
            throw new \InvalidArgumentException("The index must be numeric");
        }
        if (!array_key_exists($index, $this->sheetCollection)) {
            throw new \RuntimeException("The index of this sheet doesn't exist");
        }
    }