PHP Class PHPSA\Definition\ClosureDefinition

Inheritance: extends ParentDefinition
Mostrar archivo Open project: ovr/phpsa Class Usage Examples

Protected Properties

Property Type Description
$filepath string
$possibleReturnTypes array
$returnTypes integer
$statement PhpParser\Node\Expr\Closure
$symbolTable PHPSA\Compiler\SymbolTable

Public Methods

Method 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 method

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

compile() public method

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

getFilepath() public method

public getFilepath ( ) : string
return string

getNamespace() public method

public getNamespace ( ) : string
return string

preCompile() public method

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

run() public method

public run ( array $arguments, Context $context ) : CompiledExpression
$arguments array
$context PHPSA\Context
return PHPSA\CompiledExpression

setFilepath() public method

public setFilepath ( string $filepath )
$filepath string

Property Details

$filepath protected_oe property

protected string $filepath
return string

$possibleReturnTypes protected_oe property

protected array $possibleReturnTypes
return array

$returnTypes protected_oe property

protected int $returnTypes
return integer

$statement protected_oe property

protected Closure,PhpParser\Node\Expr $statement
return PhpParser\Node\Expr\Closure

$symbolTable protected_oe property

protected SymbolTable,PHPSA\Compiler $symbolTable
return PHPSA\Compiler\SymbolTable