Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Phan
Language
UnionType
hasType
Phan\Language\UnionType::hasType PHP Method
UnionType Class Documentation
Show file
Open project: etsy/phan
hasType()
public
method
public
hasType
(
Type
$type
) :
boolean
$type
Type
return
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