PHP 인터페이스 Pinq\Analysis\ITypeSystem

저자: Elliot Levin ([email protected])
파일 보기 프로젝트 열기: timetoogo/pinq 0 사용 예제들

공개 메소드들

메소드 설명
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