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

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

        return $this;
    }
public function uniqueIn ( IObjectSet $ objects , string $ propertyName ) { $ this -> customProcessorCallbacks [ ] = function ( IType $ currentType , IFieldType $ fieldType , $ initialValue ) use ( $ objects , $ propertyName ) { return new UniquePropertyValidator ( $ currentType , $ objects , $ propertyName , $ initialValue ) ; } ; return $ this ; }
Validates the input to be a unique within the object properties.

@param IObjectSet $objects
@param string     $propertyName

@return static
Validates the input to be a unique within the object properties .