PHP Класс PDepend\Util\Type

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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