protected function validateInputContentTypeGroups(array $contentTypeGroups)
    {
        if (empty($contentTypeGroups)) {
            throw new InvalidArgumentException(
                '$contentTypeGroups',
                'Argument must contain at least one ContentTypeGroup'
            );
        }

        foreach ($contentTypeGroups as $key => $contentTypeGroup) {
            if (!$contentTypeGroup instanceof APIContentTypeGroup) {
                throw new InvalidArgumentType(
                    "\$contentTypeGroups[{$key}]",
                    'eZ\\Publish\\API\\Repository\\Values\\ContentType\\ContentTypeGroup',
                    $contentTypeGroup
                );
            }
        }
    }
protected function validateInputContentTypeGroups(array $contentTypeGroups)
    {
        if (empty($contentTypeGroups)) {
            throw new InvalidArgumentException(
                '$contentTypeGroups',
                'Argument must contain at least one ContentTypeGroup'
            );
        }

        foreach ($contentTypeGroups as $key => $contentTypeGroup) {
            if (!$contentTypeGroup instanceof APIContentTypeGroup) {
                throw new InvalidArgumentType(
                    "\$contentTypeGroups[{$key}]",
                    'eZ\\Publish\\API\\Repository\\Values\\ContentType\\ContentTypeGroup',
                    $contentTypeGroup
                );
            }
        }
    }
protected function validateInputContentTypeGroups ( array $ contentTypeGroups ) { if ( empty ( $ contentTypeGroups ) ) { throw new InvalidArgumentException ( '$contentTypeGroups' , 'Argument must contain at least one ContentTypeGroup' ) ; } foreach ( $ contentTypeGroups as $ key => $ contentTypeGroup ) { if ( ! $ contentTypeGroup instanceof APIContentTypeGroup ) { throw new InvalidArgumentType ( "\$contentTypeGroups[{$key}]" , 'eZ\\Publish\\API\\Repository\\Values\\ContentType\\ContentTypeGroup' , $ contentTypeGroup ) ; } } }
Validates input ContentTypeGroup array.

@throws \eZ\Publish\Core\Base\Exceptions\InvalidArgumentException
@throws \eZ\Publish\Core\Base\Exceptions\InvalidArgumentType

@param \eZ\Publish\API\Repository\Values\ContentType\ContentTypeGroup[] $contentTypeGroups
Validates input ContentTypeGroup array .