class EntityExistsCheck implements CheckInterface (View source)

Parameterized check that validates an entity from reflection exists in stubs.

Accepts either an EntityTypeConfig or raw LookupKind + label. When used via CheckDescriptor, EntityTypeConfig is passed as a named argument.

Methods

__construct(LookupKind|null $lookupKind = null, string|null $label = null, EntityTypeConfig|null $entityTypeConfig = null)

No description

bool
supports(string $phpVersion)

No description

run(StubDataQueryInterface $stubs, string $entityId, string $phpVersion)

No description

Details

__construct(LookupKind|null $lookupKind = null, string|null $label = null, EntityTypeConfig|null $entityTypeConfig = null)

No description

Parameters

LookupKind|null $lookupKind
string|null $label
EntityTypeConfig|null $entityTypeConfig

bool supports(string $phpVersion)

No description

Parameters

string $phpVersion

Return Value

bool

CheckResultSet run(StubDataQueryInterface $stubs, string $entityId, string $phpVersion)

No description

Parameters

StubDataQueryInterface $stubs

Parsed stubs data

string $entityId

Entity identifier to validate

string $phpVersion

PHP version string

Return Value

CheckResultSet