implements
CompoundType
uses
UndecidedBooleanTypeTrait, NonGenericTypeTrait, UndecidedComparisonCompoundTypeTrait, NonRemoveableTypeTrait, NonGeneralizableTypeTrait
public
__construct(bool $isExplicit = false)
isExplicit(): bool
getReferencedClasses(): string[]
PHPStan\Type\Type::getReferencedClasses()
accepts(Type $type, bool $strictTypes): TrinaryLogic
PHPStan\Type\Type::accepts()
isSuperTypeOf(Type $type): TrinaryLogic
PHPStan\Type\Type::isSuperTypeOf()
equals(Type $type): bool
PHPStan\Type\Type::equals()
isSubTypeOf(Type $otherType): TrinaryLogic
PHPStan\Type\CompoundType::isSubTypeOf()
isAcceptedBy(Type $acceptingType, bool $strictTypes): TrinaryLogic
PHPStan\Type\CompoundType::isAcceptedBy()
describe(VerbosityLevel $level): string
PHPStan\Type\Type::describe()
canAccessProperties(): TrinaryLogic
PHPStan\Type\Type::canAccessProperties()
hasProperty(string $propertyName): TrinaryLogic
PHPStan\Type\Type::hasProperty()
getProperty(string $propertyName, ClassMemberAccessAnswerer $scope): PropertyReflection
PHPStan\Type\Type::getProperty()
getUnresolvedPropertyPrototype( string $propertyName, ClassMemberAccessAnswerer $scope, ): UnresolvedPropertyPrototypeReflection
PHPStan\Type\Type::getUnresolvedPropertyPrototype()
canCallMethods(): TrinaryLogic
PHPStan\Type\Type::canCallMethods()
hasMethod(string $methodName): TrinaryLogic
PHPStan\Type\Type::hasMethod()
getMethod(string $methodName, ClassMemberAccessAnswerer $scope): MethodReflection
PHPStan\Type\Type::getMethod()
getUnresolvedMethodPrototype(string $methodName, ClassMemberAccessAnswerer $scope): UnresolvedMethodPrototypeReflection
PHPStan\Type\Type::getUnresolvedMethodPrototype()
canAccessConstants(): TrinaryLogic
PHPStan\Type\Type::canAccessConstants()
hasConstant(string $constantName): TrinaryLogic
PHPStan\Type\Type::hasConstant()
getConstant(string $constantName): ConstantReflection
PHPStan\Type\Type::getConstant()
isIterable(): TrinaryLogic
PHPStan\Type\Type::isIterable()
isIterableAtLeastOnce(): TrinaryLogic
PHPStan\Type\Type::isIterableAtLeastOnce()
getIterableKeyType(): Type
PHPStan\Type\Type::getIterableKeyType()
getIterableValueType(): Type
PHPStan\Type\Type::getIterableValueType()
isOffsetAccessible(): TrinaryLogic
PHPStan\Type\Type::isOffsetAccessible()
hasOffsetValueType(Type $offsetType): TrinaryLogic
PHPStan\Type\Type::hasOffsetValueType()
getOffsetValueType(Type $offsetType): Type
PHPStan\Type\Type::getOffsetValueType()
setOffsetValueType(?Type $offsetType, Type $valueType, bool $unionValues = true): Type
PHPStan\Type\Type::setOffsetValueType()
unsetOffset(Type $offsetType): Type
PHPStan\Type\Type::unsetOffset()
isCallable(): TrinaryLogic
PHPStan\Type\Type::isCallable()
getCallableParametersAcceptors(ClassMemberAccessAnswerer $scope): ParametersAcceptor[]
PHPStan\Type\Type::getCallableParametersAcceptors()
isCloneable(): TrinaryLogic
PHPStan\Type\Type::isCloneable()
toNumber(): Type
PHPStan\Type\Type::toNumber()
toString(): Type
PHPStan\Type\Type::toString()
toInteger(): Type
PHPStan\Type\Type::toInteger()
toFloat(): Type
PHPStan\Type\Type::toFloat()
toArray(): Type
PHPStan\Type\Type::toArray()
traverse(callable $cb): Type
Traverses inner types
Returns a new instance with all inner types mapped through $cb. Might return the same instance if inner types did not change.
PHPStan\Type\Type::traverse()
isArray(): TrinaryLogic
PHPStan\Type\Type::isArray()
isOversizedArray(): TrinaryLogic
PHPStan\Type\Type::isOversizedArray()
isString(): TrinaryLogic
PHPStan\Type\Type::isString()
isNumericString(): TrinaryLogic
PHPStan\Type\Type::isNumericString()
isNonEmptyString(): TrinaryLogic
PHPStan\Type\Type::isNonEmptyString()
isNonFalsyString(): TrinaryLogic
PHPStan\Type\Type::isNonFalsyString()
isLiteralString(): TrinaryLogic
PHPStan\Type\Type::isLiteralString()
public static
__set_state(mixed[] $properties): Type
PHPStan\Type\Type::__set_state()