PHP 클래스 PHPStan\Type\TypehintHelper

파일 보기 프로젝트 열기: phpstan/phpstan 1 사용 예제들

공개 메소드들

메소드 설명
decideType ( ReflectionType $reflectionType = null, PHPStan\Type\Type $phpDocType = null, string $selfClass = null, boolean $isVariadic = false ) : PHPStan\Type\Type
decideType ( PHPStan\Type\Type $type, PHPStan\Type\Type $phpDocType = null ) : PHPStan\Type\Type
decideTypeFromReflection ( ReflectionType $reflectionType = null, PHPStan\Type\Type $phpDocType = null, string $selfClass = null, boolean $isVariadic = false ) : PHPStan\Type\Type
getPhpDocParameterTypesFromMethod ( array $typeMap, array $parameterNames, string $docComment ) : array
getPhpDocReturnTypeFromMethod ( array $typeMap, string $docComment ) : PHPStan\Type\Type | null
getTypeObjectFromTypehint ( string $typehintString, boolean $isNullable, string $selfClass = null ) : PHPStan\Type\Type

비공개 메소드들

메소드 설명
getMethodParameterAnnotationTypeString ( array $phpDocParameterTypeStrings, string $parameterName ) : string | null
getReturnTypeStringFromMethod ( string $docComment ) : string | null

메소드 상세

decideType() 공개 정적인 메소드

public static decideType ( ReflectionType $reflectionType = null, PHPStan\Type\Type $phpDocType = null, string $selfClass = null, boolean $isVariadic = false ) : PHPStan\Type\Type
$reflectionType ReflectionType
$phpDocType PHPStan\Type\Type
$selfClass string
$isVariadic boolean
리턴 PHPStan\Type\Type

decideType() 공개 정적인 메소드

public static decideType ( PHPStan\Type\Type $type, PHPStan\Type\Type $phpDocType = null ) : PHPStan\Type\Type
$type PHPStan\Type\Type
$phpDocType PHPStan\Type\Type
리턴 PHPStan\Type\Type

decideTypeFromReflection() 공개 정적인 메소드

public static decideTypeFromReflection ( ReflectionType $reflectionType = null, PHPStan\Type\Type $phpDocType = null, string $selfClass = null, boolean $isVariadic = false ) : PHPStan\Type\Type
$reflectionType ReflectionType
$phpDocType PHPStan\Type\Type
$selfClass string
$isVariadic boolean
리턴 PHPStan\Type\Type

getPhpDocParameterTypesFromMethod() 공개 정적인 메소드

public static getPhpDocParameterTypesFromMethod ( array $typeMap, array $parameterNames, string $docComment ) : array
$typeMap array
$parameterNames array
$docComment string
리턴 array

getPhpDocReturnTypeFromMethod() 공개 정적인 메소드

public static getPhpDocReturnTypeFromMethod ( array $typeMap, string $docComment ) : PHPStan\Type\Type | null
$typeMap array
$docComment string
리턴 PHPStan\Type\Type | null

getTypeObjectFromTypehint() 공개 정적인 메소드

public static getTypeObjectFromTypehint ( string $typehintString, boolean $isNullable, string $selfClass = null ) : PHPStan\Type\Type
$typehintString string
$isNullable boolean
$selfClass string
리턴 PHPStan\Type\Type