public function allUniqueIn(IObjectSet $objects, string $propertyName)
    {
        $this->customProcessorCallbacks[] = function (IType $currentType, IFieldType $fieldType, $initialValue) use ($objects, $propertyName) {
            return new AllUniquePropertyValidator($currentType, $objects, $propertyName, $initialValue);
        };

        return $this;
    }
public function allUniqueIn(IObjectSet $objects, string $propertyName)
    {
        $this->customProcessorCallbacks[] = function (IType $currentType, IFieldType $fieldType, $initialValue) use ($objects, $propertyName) {
            return new AllUniquePropertyValidator($currentType, $objects, $propertyName, $initialValue);
        };

        return $this;
    }
public function allUniqueIn ( IObjectSet $ objects , string $ propertyName ) { $ this -> customProcessorCallbacks [ ] = function ( IType $ currentType , IFieldType $ fieldType , $ initialValue ) use ( $ objects , $ propertyName ) { return new AllUniquePropertyValidator ( $ currentType , $ objects , $ propertyName , $ initialValue ) ; } ; return $ this ; }
Validates that all the array elements are unique within the supplied
set of object properties.

@param IObjectSet $objects
@param string     $propertyName the property member expression

@return static
Validates that all the array elements are unique within the supplied set of object properties .