PHP Интерфейс Pinq\Analysis\ITypeSystem

Автор: Elliot Levin ([email protected])
Показать файл Открыть проект Примеры использования интерфейса

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

Метод Описание
getBinaryOperation ( Pinq\Analysis\IType $leftOperandType, string $operator, Pinq\Analysis\IType $rightOperandType ) : Pinq\Analysis\IBinaryOperation Gets the binary operation matching the supplied types.
getCommonAncestorType ( Pinq\Analysis\IType $type, Pinq\Analysis\IType $otherType ) : Pinq\Analysis\IType Gets of a common ancestor type of the supplied types.
getCompositeType ( array $types ) : Pinq\Analysis\IType Gets a type composed of the supplied types.
getFunction ( string $name ) : Pinq\Analysis\IFunction Gets the function with the supplied name.
getNativeType ( string $nativeType ) : Pinq\Analysis\INativeType Gets the native type with the supplied int from the INativeType::TYPE_* constants.
getObjectType ( string $classType ) : Pinq\Analysis\IObjectType Gets the object type with the supplied class name.
getType ( string $typeIdentifier ) : Pinq\Analysis\IType Gets of the type with the supplied identifier.
getTypeFromTypeHint ( string | null $typeHint ) : Pinq\Analysis\IType Gets of the type from the supplied parameter type hint.
getTypeFromValue ( mixed $value ) : Pinq\Analysis\IType Gets of the type of the supplied value.

Описание методов

getBinaryOperation() публичный Метод

Gets the binary operation matching the supplied types.
public getBinaryOperation ( Pinq\Analysis\IType $leftOperandType, string $operator, Pinq\Analysis\IType $rightOperandType ) : Pinq\Analysis\IBinaryOperation
$leftOperandType Pinq\Analysis\IType
$operator string
$rightOperandType Pinq\Analysis\IType
Результат Pinq\Analysis\IBinaryOperation

getCommonAncestorType() публичный Метод

Gets of a common ancestor type of the supplied types.
public getCommonAncestorType ( Pinq\Analysis\IType $type, Pinq\Analysis\IType $otherType ) : Pinq\Analysis\IType
$type Pinq\Analysis\IType
$otherType Pinq\Analysis\IType
Результат Pinq\Analysis\IType

getCompositeType() публичный Метод

Gets a type composed of the supplied types.
public getCompositeType ( array $types ) : Pinq\Analysis\IType
$types array
Результат Pinq\Analysis\IType

getFunction() публичный Метод

Gets the function with the supplied name.
public getFunction ( string $name ) : Pinq\Analysis\IFunction
$name string
Результат Pinq\Analysis\IFunction

getNativeType() публичный Метод

Gets the native type with the supplied int from the INativeType::TYPE_* constants.
public getNativeType ( string $nativeType ) : Pinq\Analysis\INativeType
$nativeType string
Результат Pinq\Analysis\INativeType

getObjectType() публичный Метод

Gets the object type with the supplied class name.
public getObjectType ( string $classType ) : Pinq\Analysis\IObjectType
$classType string
Результат Pinq\Analysis\IObjectType

getType() публичный Метод

Gets of the type with the supplied identifier.
public getType ( string $typeIdentifier ) : Pinq\Analysis\IType
$typeIdentifier string
Результат Pinq\Analysis\IType

getTypeFromTypeHint() публичный Метод

Gets of the type from the supplied parameter type hint.
public getTypeFromTypeHint ( string | null $typeHint ) : Pinq\Analysis\IType
$typeHint string | null
Результат Pinq\Analysis\IType

getTypeFromValue() публичный Метод

Gets of the type of the supplied value.
public getTypeFromValue ( mixed $value ) : Pinq\Analysis\IType
$value mixed
Результат Pinq\Analysis\IType