PHP Класс Pinq\Analysis\PhpTypeSystem

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

Защищенные свойства (Protected)

Свойство Тип Описание
$classTypeMap array[]
$functionTypeMap string[]
$typeDataModules Pinq\Analysis\TypeData\ITypeDataModule[]

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

Метод Описание
__construct ( array $customTypeDataModules = [] )
getCommonAncestorType ( Pinq\Analysis\IType $type, Pinq\Analysis\IType $otherType )
getTypeDataModules ( ) : Pinq\Analysis\TypeData\ITypeDataModule[] Gets the type data modules from the type system.
getTypeFromTypeHint ( $typeHint )
getTypeFromValue ( $value )
registerTypeDataModule ( Pinq\Analysis\TypeData\ITypeDataModule $module ) : void Adds the type data module to the type system.

Защищенные методы

Метод Описание
binaryOperations ( )
bitwiseOperators ( $operator )
booleanOperator ( $operator )
buildCompositeType ( $typeId, array $types )
buildFunction ( $name )
buildObjectType ( $typeId, $classType )
commonNativeUnaryOperations ( )
getAncestorTypes ( Pinq\Analysis\IType $type )
getObjectTypeData ( $classType )
mathOperators ( $operator, $otherIntReturnType = INativeType::TYPE_INT )
nativeCasts ( )
nativeType ( $typeOfType, Pinq\Analysis\IType $parentType, Pinq\Analysis\IIndexer $indexer = null, array $unaryOperatorMap = [], array $castMap = [] )
nativeTypes ( )
normalizeClassName ( $name ) such as 'money_format' which will fail with reflection if not available.
normalizeFunctionName ( $name )
objectCasts ( $objectTypeId )
objectUnaryOperations ( $objectTypeId )
typeDataModules ( ) : Pinq\Analysis\TypeData\ITypeDataModule[]

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

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

public __construct ( array $customTypeDataModules = [] )
$customTypeDataModules array

binaryOperations() защищенный Метод

protected binaryOperations ( )

bitwiseOperators() защищенный Метод

protected bitwiseOperators ( $operator )

booleanOperator() защищенный Метод

protected booleanOperator ( $operator )

buildCompositeType() защищенный Метод

protected buildCompositeType ( $typeId, array $types )
$types array

buildFunction() защищенный Метод

protected buildFunction ( $name )

buildObjectType() защищенный Метод

protected buildObjectType ( $typeId, $classType )

commonNativeUnaryOperations() защищенный Метод

getAncestorTypes() защищенный Метод

protected getAncestorTypes ( Pinq\Analysis\IType $type )
$type Pinq\Analysis\IType

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

public getCommonAncestorType ( Pinq\Analysis\IType $type, Pinq\Analysis\IType $otherType )
$type Pinq\Analysis\IType
$otherType Pinq\Analysis\IType

getObjectTypeData() защищенный Метод

protected getObjectTypeData ( $classType )

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

Gets the type data modules from the type system.
public getTypeDataModules ( ) : Pinq\Analysis\TypeData\ITypeDataModule[]
Результат Pinq\Analysis\TypeData\ITypeDataModule[]

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

public getTypeFromTypeHint ( $typeHint )

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

public getTypeFromValue ( $value )

mathOperators() защищенный Метод

protected mathOperators ( $operator, $otherIntReturnType = INativeType::TYPE_INT )

nativeCasts() защищенный Метод

protected nativeCasts ( )

nativeType() защищенный Метод

protected nativeType ( $typeOfType, Pinq\Analysis\IType $parentType, Pinq\Analysis\IIndexer $indexer = null, array $unaryOperatorMap = [], array $castMap = [] )
$parentType Pinq\Analysis\IType
$indexer Pinq\Analysis\IIndexer
$unaryOperatorMap array
$castMap array

nativeTypes() защищенный Метод

protected nativeTypes ( )

normalizeClassName() защищенный Метод

such as 'money_format' which will fail with reflection if not available.
protected normalizeClassName ( $name )

normalizeFunctionName() защищенный Метод

protected normalizeFunctionName ( $name )

objectCasts() защищенный Метод

protected objectCasts ( $objectTypeId )

objectUnaryOperations() защищенный Метод

protected objectUnaryOperations ( $objectTypeId )

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

Adds the type data module to the type system.
public registerTypeDataModule ( Pinq\Analysis\TypeData\ITypeDataModule $module ) : void
$module Pinq\Analysis\TypeData\ITypeDataModule
Результат void

typeDataModules() защищенный Метод

protected typeDataModules ( ) : Pinq\Analysis\TypeData\ITypeDataModule[]
Результат Pinq\Analysis\TypeData\ITypeDataModule[]

Описание свойств

$classTypeMap защищенное свойство

protected array[] $classTypeMap
Результат array[]

$functionTypeMap защищенное свойство

protected string[] $functionTypeMap
Результат string[]

$typeDataModules защищенное свойство

protected ITypeDataModule[],Pinq\Analysis\TypeData $typeDataModules
Результат Pinq\Analysis\TypeData\ITypeDataModule[]