class EntityExistsCheck extends AbstractReflectionCheck (View source)

Validates that a top-level entity present in reflection also exists in stubs.

Config-driven across function / class / enum / interface via EntityTypeConfig: it always reports the check name 'EntityExistsCheck', and the entity variant is distinguished by the EntityType passed to the known-problem lookup. (Global constants use ConstantExistsCheck; member existence is handled by the MethodsExist / PropertiesExist / EnumCases checks.)

Properties

protected ReflectionProviderInterface $reflectionProvider from  AbstractReflectionCheck
protected KnownProblemsRegistry $knownProblemsRegistry from  AbstractReflectionCheck

Methods

__construct(EntityTypeConfig|null $entityTypeConfig = null, KnownProblemsRegistry|null $knownProblemsRegistry = null, EntityLookupService|null $entityLookup = null)

No description

bool
skipWithKnownProblem(CheckResultSet $results, string $entityType, string $entityId, CheckType $checkType, string $phpVersion)

Records a skipped-success result if a known problem covers this entity, and returns true.

bool
supports(string $phpVersion)

No description

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

No description

Details

__construct(EntityTypeConfig|null $entityTypeConfig = null, KnownProblemsRegistry|null $knownProblemsRegistry = null, EntityLookupService|null $entityLookup = null)

No description

Parameters

EntityTypeConfig|null $entityTypeConfig
KnownProblemsRegistry|null $knownProblemsRegistry
EntityLookupService|null $entityLookup

protected bool skipWithKnownProblem(CheckResultSet $results, string $entityType, string $entityId, CheckType $checkType, string $phpVersion)

Records a skipped-success result if a known problem covers this entity, and returns true.

Returns false if validation should proceed normally.

Parameters

CheckResultSet $results
string $entityType
string $entityId
CheckType $checkType
string $phpVersion

Return Value

bool

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