KGzocha\Searcher\AbstractCollection::checkItems PHP Method

checkItems() private method

private checkItems ( array | Traversable $items )
$items array | Traversable
    private function checkItems($items)
    {
        foreach ($items as $item) {
            if ($this->isItemValid($item)) {
                continue;
            }
            throw new \InvalidArgumentException(sprintf('At least one item in collection "%s" is invalid.', get_class($this)));
        }
    }