SerialNumberUniqueInCollectionValidator
extends ConstraintValidator
in package
implements
ContainerInjectionInterface
FinalYes
Validates the Unique Serial Number in Collection constraint.
Table of Contents
Interfaces
- ContainerInjectionInterface
Properties
- $entityTypeManager : EntityTypeManagerInterface
Methods
- __construct() : mixed
- Constructs the object.
- create() : self
- {@inheritdoc}
- validate() : mixed
- {@inheritdoc}
Properties
$entityTypeManager read-only
private
EntityTypeManagerInterface
$entityTypeManager
Methods
__construct()
Constructs the object.
public
__construct(EntityTypeManagerInterface $entityTypeManager) : mixed
Parameters
- $entityTypeManager : EntityTypeManagerInterface
create()
{@inheritdoc}
public
static create(ContainerInterface $container) : self
Parameters
- $container : ContainerInterface
Return values
selfvalidate()
{@inheritdoc}
public
validate(mixed $entity, Constraint $constraint) : mixed
Parameters
- $entity : mixed
- $constraint : Constraint