class EntityNamespaceCheck implements CheckInterface (View source)

Parameterized check that validates entity namespace in stubs matches the namespace implied by its entity ID.

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, EntityLookupService|null $entityLookup = 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, EntityLookupService|null $entityLookup = null, EntityTypeConfig|null $entityTypeConfig = null)

No description

Parameters

LookupKind|null $lookupKind
string|null $label
EntityLookupService|null $entityLookup
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