Toggle navigation
Hot Examples
RU
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Найти
Главная
Phan
Language
UnionType
hasType
Phan\Language\UnionType::hasType PHP Метод
Документация по классу UnionType
Показать файл
Открыть проект
hasType()
публичный
Метод
public
hasType
(
Type
$type
) :
boolean
$type
Type
Результат
boolean
True if this union type contains the given named type.
public function hasType(Type $type) : bool { return $this->type_set->contains($type); }
Same methods
UnionType::
hasType
(
Type
$type
) :
boolean
UnionType
__clone
__construct
__toString
addType
addUnionType
asClassList
asExpandedTypes
asGenericArrayTypes
canCastToExpandedUnionType
canCastToUnionType
fromFullyQualifiedString
fromNode
fromStringInContext
genericArrayElementTypes
getTemplateParameterTypeList
getTemplateParameterTypeMap
getTypeSet
hasAnyType
hasArrayLike
hasGenericArray
hasGenericType
hasSelfType
hasStaticType
hasTemplateType
hasType
internalFunctionSignatureMap
internalFunctionSignatureMapForFQSEN
internalPropertyMap
internalPropertyMapForClassName
isEmpty
isEqualTo
isGenericArray
isNativeType
isScalar
isType
nonArrayTypes
nonGenericArrayTypes
nonNativeTypes
removeType
serialize
typeCount
unserialize
withStaticResolvedInContext
withTemplateParameterTypeMap