Toggle navigation
Hot Examples
KO
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 1 문서
파일 보기
프로젝트 열기: etsy/phan
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