KGzocha\Searcher\Chain\Collection\CellCollection::validateNumberOfCells PHP Method

validateNumberOfCells() private method

private validateNumberOfCells ( )
    private function validateNumberOfCells()
    {
        $count = $this->count();
        if (self::MINIMUM_CELLS <= $count) {
            return;
        }
        throw new \InvalidArgumentException(sprintf('At last %d cells are required, but there are only %d in collection %s', self::MINIMUM_CELLS, $count, get_class($this)));
    }