PHP Interface Pinq\Analysis\ITypeSystem

Author: Elliot Levin ([email protected])
Datei anzeigen Open project: timetoogo/pinq Interface Usage Examples

Public Methods

Method Description
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.

Method Details

getBinaryOperation() public method

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
return Pinq\Analysis\IBinaryOperation

getCommonAncestorType() public method

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
return Pinq\Analysis\IType

getCompositeType() public method

Gets a type composed of the supplied types.
public getCompositeType ( array $types ) : Pinq\Analysis\IType
$types array
return Pinq\Analysis\IType

getFunction() public method

Gets the function with the supplied name.
public getFunction ( string $name ) : Pinq\Analysis\IFunction
$name string
return Pinq\Analysis\IFunction

getNativeType() public method

Gets the native type with the supplied int from the INativeType::TYPE_* constants.
public getNativeType ( string $nativeType ) : Pinq\Analysis\INativeType
$nativeType string
return Pinq\Analysis\INativeType

getObjectType() public method

Gets the object type with the supplied class name.
public getObjectType ( string $classType ) : Pinq\Analysis\IObjectType
$classType string
return Pinq\Analysis\IObjectType

getType() public method

Gets of the type with the supplied identifier.
public getType ( string $typeIdentifier ) : Pinq\Analysis\IType
$typeIdentifier string
return Pinq\Analysis\IType

getTypeFromTypeHint() public method

Gets of the type from the supplied parameter type hint.
public getTypeFromTypeHint ( string | null $typeHint ) : Pinq\Analysis\IType
$typeHint string | null
return Pinq\Analysis\IType

getTypeFromValue() public method

Gets of the type of the supplied value.
public getTypeFromValue ( mixed $value ) : Pinq\Analysis\IType
$value mixed
return Pinq\Analysis\IType