PHP 클래스 PDepend\Util\Type

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

공개 메소드들

메소드 설명
getInternalNamespaces ( ) : array(string) Returns an array with all package/extension names.
getPrimitiveType ( string $image ) : string This method will return a unified type image for a detected source type image.
getTypePackage ( string $typeName ) : string Returns the package/extension for the given type name. If no package exists, this method will return null.
isArrayType ( string $image ) : boolean This method will return true when the given image describes a php array type.
isInternalPackage ( string $packageName ) : boolean This method will return true when the given package represents a php extension.
isInternalType ( string $typeName ) : boolean Returns true if the given type is internal or part of an extension.
isPrimitiveType ( string $image ) : boolean This method will return true when the given type identifier is in the list of primitive types.
isScalarType ( string $image ) : boolean This method will return true when the given type identifier is in the list of scalar/none-object types.

비공개 메소드들

메소드 설명
initTypeToExtension ( ) : array(string=>string) This method reads all available classes and interfaces and checks whether this type belongs to an extension or is internal. All internal and extension classes are collected in an internal data structure.

메소드 상세

getInternalNamespaces() 공개 정적인 메소드

Returns an array with all package/extension names.
public static getInternalNamespaces ( ) : array(string)
리턴 array(string)

getPrimitiveType() 공개 정적인 메소드

This method will return a unified type image for a detected source type image.
부터: 0.9.6
public static getPrimitiveType ( string $image ) : string
$image string The found primitive type image.
리턴 string

getTypePackage() 공개 정적인 메소드

Returns the package/extension for the given type name. If no package exists, this method will return null.
public static getTypePackage ( string $typeName ) : string
$typeName string The type name.
리턴 string

isArrayType() 공개 정적인 메소드

This method will return true when the given image describes a php array type.
부터: 0.9.6
public static isArrayType ( string $image ) : boolean
$image string The found type image.
리턴 boolean

isInternalPackage() 공개 정적인 메소드

This method will return true when the given package represents a php extension.
public static isInternalPackage ( string $packageName ) : boolean
$packageName string Name of a package.
리턴 boolean

isInternalType() 공개 정적인 메소드

Returns true if the given type is internal or part of an extension.
public static isInternalType ( string $typeName ) : boolean
$typeName string The type name.
리턴 boolean

isPrimitiveType() 공개 정적인 메소드

This method will return true when the given type identifier is in the list of primitive types.
부터: 0.9.6
public static isPrimitiveType ( string $image ) : boolean
$image string The type image.
리턴 boolean

isScalarType() 공개 정적인 메소드

This method will return true when the given type identifier is in the list of scalar/none-object types.
public static isScalarType ( string $image ) : boolean
$image string The type identifier.
리턴 boolean