Copied!

UniqueIdentifier

UniqueIdentifier.php : 16
Abstract
Extends Constraint
Implements TranslationContainerInterface
Attributes
#[HasNamedArguments]

Constants

protectedMESSAGE

UniqueIdentifier.php : 18
protected string MESSAGE = 'ibexa.identifier_already_exists'

Properties

public $existingIdPath

UniqueIdentifier.php : 22
public string|null $existingIdPath = null

public $identifierPath

UniqueIdentifier.php : 24
public string $identifierPath

public $message

UniqueIdentifier.php : 20
public string $message = self::MESSAGE

public $reportErrorPath

UniqueIdentifier.php : 26
public string|null $reportErrorPath = null

Methods

public__construct()

UniqueIdentifier.php : 34
public __construct(string $identifierPath[, string|null $existingIdPath = null ][, string|null $reportErrorPath = null ][, string|null $message = null ][, array<string|int, string>|null $groups = null ][, mixed $payload = null ])

Parameters

Name Type Default value Description
$identifierPath string -

Property path of the identifier to check for uniqueness

$existingIdPath string|null null

Property path of the ID of the object being updated, so it does not collide with itself

$reportErrorPath string|null null

Property path to report the violation on (defaults to $identifierPath)

$message string|null null -
$groups array<string|int, string>|null null -
$payload mixed null -
Attributes
#[HasNamedArguments]

publicgetTargets()

UniqueIdentifier.php : 54
public getTargets() : array<string|int, self::*>

Return values

array<string|int, self::*>

publicgetTranslationMessages()

UniqueIdentifier.php : 59
public static getTranslationMessages() : array<string|int, mixed>

Return values

array<string|int, mixed>

protectedgetMessageDesc()

UniqueIdentifier.php : 67
protected static getMessageDesc() : string

Return values

string