final class CheckDescriptor (View source)

Describes a validation check for declarative registration in ValidatorTestBase.

Methods

__construct(string $checkClass, PhpVersions $fromVersion, PhpVersions $toVersion, string $messageTemplate, EntityTypeConfig|null $entityTypeConfig = null)

No description

Details

__construct(string $checkClass, PhpVersions $fromVersion, PhpVersions $toVersion, string $messageTemplate, EntityTypeConfig|null $entityTypeConfig = null)

No description

Parameters

string $checkClass

The check class to instantiate

PhpVersions $fromVersion

Earliest PHP version this check applies to

PhpVersions $toVersion

Latest PHP version this check applies to

string $messageTemplate

Assertion message template ({entityId}, {phpVersion} placeholders)

EntityTypeConfig|null $entityTypeConfig

Optional config for entity-type-polymorphic checks