EntityExistsCheck
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
No description
Records a skipped-success result if a known problem covers this entity, and returns true.
No description
Details
__construct(EntityTypeConfig|null $entityTypeConfig = null, KnownProblemsRegistry|null $knownProblemsRegistry = null, EntityLookupService|null $entityLookup = null)
No description
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.
bool
supports(string $phpVersion)
No description
CheckResultSet
run(StubDataQueryInterface $stubs, string $entityId, string $phpVersion)
No description