Copied!

UniqueIdentifierValidator

UniqueIdentifierValidator.php : 17
Abstract
Extends ConstraintValidator

Methods

public__construct()

UniqueIdentifierValidator.php : 21
public __construct(PropertyAccessorInterface $propertyAccessor)

Parameters

Name Type Default value Description
$propertyAccessor PropertyAccessorInterface - -

publicvalidate()

UniqueIdentifierValidator.php : 27
public validate(mixed $value, Constraint $constraint) : void

Parameters

Name Type Default value Description
$value mixed - -
$constraint Constraint - -

protectedgetExistingIdForIdentifier()

UniqueIdentifierValidator.php : 77
protected abstract getExistingIdForIdentifier(string $identifier) : string|int|null

Parameters

Name Type Default value Description
$identifier string - -

Return values

string|int|null