implements
CompoundType
uses
UndecidedBooleanTypeTrait, NonGenericTypeTrait, UndecidedComparisonCompoundTypeTrait, NonRemoveableTypeTrait, NonGeneralizableTypeTrait
public
__construct(bool $isExplicit = false)
isExplicit(): bool
getReferencedClasses(): string[]
PHPStan\Type\Type::getReferencedClasses()
getArrays(): array
PHPStan\Type\Type::getArrays()
getConstantArrays(): array
PHPStan\Type\Type::getConstantArrays()
getConstantStrings(): array
PHPStan\Type\Type::getConstantStrings()
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): ExtendedMethodReflection
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()
getArraySize(): Type
PHPStan\Type\Type::getArraySize()
getIterableKeyType(): Type
PHPStan\Type\Type::getIterableKeyType()
getFirstIterableKeyType(): Type
PHPStan\Type\Type::getFirstIterableKeyType()
getLastIterableKeyType(): Type
PHPStan\Type\Type::getLastIterableKeyType()
getIterableValueType(): Type
PHPStan\Type\Type::getIterableValueType()
getFirstIterableValueType(): Type
PHPStan\Type\Type::getFirstIterableValueType()
getLastIterableValueType(): Type
PHPStan\Type\Type::getLastIterableValueType()
isArray(): TrinaryLogic
PHPStan\Type\Type::isArray()
isConstantArray(): TrinaryLogic
PHPStan\Type\Type::isConstantArray()
isOversizedArray(): TrinaryLogic
PHPStan\Type\Type::isOversizedArray()
isList(): TrinaryLogic
PHPStan\Type\Type::isList()
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()
getKeysArray(): Type
PHPStan\Type\Type::getKeysArray()
getValuesArray(): Type
PHPStan\Type\Type::getValuesArray()
fillKeysArray(Type $valueType): Type
PHPStan\Type\Type::fillKeysArray()
flipArray(): Type
PHPStan\Type\Type::flipArray()
intersectKeyArray(Type $otherArraysType): Type
PHPStan\Type\Type::intersectKeyArray()
popArray(): Type
PHPStan\Type\Type::popArray()
searchArray(Type $needleType): Type
PHPStan\Type\Type::searchArray()
shiftArray(): Type
PHPStan\Type\Type::shiftArray()
shuffleArray(): Type
PHPStan\Type\Type::shuffleArray()
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()
toArrayKey(): Type
PHPStan\Type\Type::toArrayKey()
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()
isNull(): TrinaryLogic
PHPStan\Type\Type::isNull()
isTrue(): TrinaryLogic
PHPStan\Type\Type::isTrue()
isFalse(): TrinaryLogic
PHPStan\Type\Type::isFalse()
isBoolean(): TrinaryLogic
PHPStan\Type\Type::isBoolean()
isFloat(): TrinaryLogic
PHPStan\Type\Type::isFloat()
isInteger(): TrinaryLogic
PHPStan\Type\Type::isInteger()
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()
isClassStringType(): TrinaryLogic
PHPStan\Type\Type::isClassStringType()
isVoid(): TrinaryLogic
PHPStan\Type\Type::isVoid()
isScalar(): TrinaryLogic
PHPStan\Type\Type::isScalar()
public static
__set_state(mixed[] $properties): Type
PHPStan\Type\Type::__set_state()