PHP Class Pinq\Analysis\PhpTypeSystem

Author: Elliot Levin ([email protected])
Inheritance: extends TypeSystem
Afficher le fichier Open project: timetoogo/pinq

Protected Properties

Свойство Type Description
$classTypeMap array[]
$functionTypeMap string[]
$typeDataModules Pinq\Analysis\TypeData\ITypeDataModule[]

Méthodes publiques

Méthode Description
__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.

Méthodes protégées

Méthode Description
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[]

Method Details

__construct() public méthode

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

binaryOperations() protected méthode

protected binaryOperations ( )

bitwiseOperators() protected méthode

protected bitwiseOperators ( $operator )

booleanOperator() protected méthode

protected booleanOperator ( $operator )

buildCompositeType() protected méthode

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

buildFunction() protected méthode

protected buildFunction ( $name )

buildObjectType() protected méthode

protected buildObjectType ( $typeId, $classType )

commonNativeUnaryOperations() protected méthode

getAncestorTypes() protected méthode

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

getCommonAncestorType() public méthode

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

getObjectTypeData() protected méthode

protected getObjectTypeData ( $classType )

getTypeDataModules() public méthode

Gets the type data modules from the type system.
public getTypeDataModules ( ) : Pinq\Analysis\TypeData\ITypeDataModule[]
Résultat Pinq\Analysis\TypeData\ITypeDataModule[]

getTypeFromTypeHint() public méthode

public getTypeFromTypeHint ( $typeHint )

getTypeFromValue() public méthode

public getTypeFromValue ( $value )

mathOperators() protected méthode

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

nativeCasts() protected méthode

protected nativeCasts ( )

nativeType() protected méthode

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 méthode

protected nativeTypes ( )

normalizeClassName() protected méthode

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

normalizeFunctionName() protected méthode

protected normalizeFunctionName ( $name )

objectCasts() protected méthode

protected objectCasts ( $objectTypeId )

objectUnaryOperations() protected méthode

protected objectUnaryOperations ( $objectTypeId )

registerTypeDataModule() public méthode

Adds the type data module to the type system.
public registerTypeDataModule ( Pinq\Analysis\TypeData\ITypeDataModule $module ) : void
$module Pinq\Analysis\TypeData\ITypeDataModule
Résultat void

typeDataModules() protected méthode

protected typeDataModules ( ) : Pinq\Analysis\TypeData\ITypeDataModule[]
Résultat Pinq\Analysis\TypeData\ITypeDataModule[]

Property Details

$classTypeMap protected_oe property

protected array[] $classTypeMap
Résultat array[]

$functionTypeMap protected_oe property

protected string[] $functionTypeMap
Résultat string[]

$typeDataModules protected_oe property

protected ITypeDataModule[],Pinq\Analysis\TypeData $typeDataModules
Résultat Pinq\Analysis\TypeData\ITypeDataModule[]