private function guardValidIdentifier($identifier)
    {
        if (null === $identifier || '' === $identifier) {
            throw new ResolveComponentDataException('No resolved identifier given');
        }

        if (!is_scalar($identifier) && !is_array($identifier)) {
            throw new ResolveComponentDataException('Identifier has to be a scalar or an array');
        }
    }
private function guardValidIdentifier($identifier)
    {
        if (null === $identifier || '' === $identifier) {
            throw new ResolveComponentDataException('No resolved identifier given');
        }

        if (!is_scalar($identifier) && !is_array($identifier)) {
            throw new ResolveComponentDataException('Identifier has to be a scalar or an array');
        }
    }
private function guardValidIdentifier ( $ identifier ) { if ( null === $ identifier || '' === $ identifier ) { throw new ResolveComponentDataException ( 'No resolved identifier given' ) ; } if ( ! is_scalar ( $ identifier ) && ! is_array ( $ identifier ) ) { throw new ResolveComponentDataException ( 'Identifier has to be a scalar or an array' ) ; } }
Guard valid identifier.

The identifier can not be empty (but can be zero) and has to be a scalar or array.

@param string|array $identifier

@throws ResolveComponentDataException
Guard valid identifier .