UniqueIdentifier
UniqueIdentifier.php
:
16
Abstract
Extends Constraint
Implements
TranslationContainerInterface
Attributes
- #[HasNamedArguments]
Constants¶
MESSAGE ¶
UniqueIdentifier.php
:
18
|
|
|
Properties¶
$existingIdPath
¶
UniqueIdentifier.php
:
22
|
|
|
$identifierPath
¶
UniqueIdentifier.php
:
24
|
|
|
$message
¶
UniqueIdentifier.php
:
20
|
|
|
$reportErrorPath
¶
UniqueIdentifier.php
:
26
|
|
|
Methods¶
__construct()
¶
UniqueIdentifier.php
:
34
|
|
|
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]
getTargets()
¶
UniqueIdentifier.php
:
54
|
|
|
Return values
array<string|int, self::*>
getTranslationMessages()
¶
UniqueIdentifier.php
:
59
|
|
|
Return values
array<string|int, mixed>
getMessageDesc()
¶
UniqueIdentifier.php
:
67
|
|
|
Return values
string