PHP Class PHPSA\Definition\ClosureDefinition

Inheritance: extends ParentDefinition
Afficher le fichier Open project: ovr/phpsa Class Usage Examples

Protected Properties

Свойство Type Description
$filepath string
$possibleReturnTypes array
$returnTypes integer
$statement PhpParser\Node\Expr\Closure
$symbolTable PHPSA\Compiler\SymbolTable

Méthodes publiques

Méthode Description
__construct ( Closure $statement )
compile ( Context $context ) : boolean Compile function to check it
getFilepath ( ) : string
getNamespace ( ) : string
preCompile ( Context $context )
run ( array $arguments, Context $context ) : CompiledExpression
setFilepath ( string $filepath )

Method Details

__construct() public méthode

public __construct ( Closure $statement )
$statement PhpParser\Node\Expr\Closure

compile() public méthode

Compile function to check it
public compile ( Context $context ) : boolean
$context PHPSA\Context
Résultat boolean

getFilepath() public méthode

public getFilepath ( ) : string
Résultat string

getNamespace() public méthode

public getNamespace ( ) : string
Résultat string

preCompile() public méthode

public preCompile ( Context $context )
$context PHPSA\Context

run() public méthode

public run ( array $arguments, Context $context ) : CompiledExpression
$arguments array
$context PHPSA\Context
Résultat PHPSA\CompiledExpression

setFilepath() public méthode

public setFilepath ( string $filepath )
$filepath string

Property Details

$filepath protected_oe property

protected string $filepath
Résultat string

$possibleReturnTypes protected_oe property

protected array $possibleReturnTypes
Résultat array

$returnTypes protected_oe property

protected int $returnTypes
Résultat integer

$statement protected_oe property

protected Closure,PhpParser\Node\Expr $statement
Résultat PhpParser\Node\Expr\Closure

$symbolTable protected_oe property

protected SymbolTable,PHPSA\Compiler $symbolTable
Résultat PHPSA\Compiler\SymbolTable