PHP Class Zephir\CompilerFileAnonymous

This class represents an anonymous file created to dump the code produced by an internal closure
Show file Open project: phalcon/zephir

Protected Properties

Property Type Description
$classDefinition ClassDefinition
$compiledFile
$config Zephir\Config
$external
$headerCBlocks
$logger Zephir\Logger
$namespace string

Public Methods

Method Description
__construct ( ClassDefinition $classDefinition, Zephir\Config $config, Zephir\Logger $logger ) CompilerFileAnonymous constructor
compile ( Compiler $compiler, zephir\StringsManager $stringsManager ) Compiles the file
compileClass ( ClassDefinition $classDefinition, zephir\CompilationContext $compilationContext ) Compiles the class/interface contained in the file
getClassDefinition ( ) : ClassDefinition
getCompiledFile ( ) : string Returns the path to the compiled file
isExternal ( ) : boolean
setIsExternal ( boolean $external ) Sets if the class belongs to an external dependency or not

Method Details

__construct() public method

CompilerFileAnonymous constructor
public __construct ( ClassDefinition $classDefinition, Zephir\Config $config, Zephir\Logger $logger )
$classDefinition ClassDefinition
$config Zephir\Config
$logger Zephir\Logger

compile() public method

Compiles the file
public compile ( Compiler $compiler, zephir\StringsManager $stringsManager )
$compiler Compiler
$stringsManager zephir\StringsManager

compileClass() public method

Compiles the class/interface contained in the file
public compileClass ( ClassDefinition $classDefinition, zephir\CompilationContext $compilationContext )
$classDefinition ClassDefinition
$compilationContext zephir\CompilationContext

getClassDefinition() public method

public getClassDefinition ( ) : ClassDefinition
return ClassDefinition

getCompiledFile() public method

Returns the path to the compiled file
public getCompiledFile ( ) : string
return string

isExternal() public method

public isExternal ( ) : boolean
return boolean

setIsExternal() public method

Sets if the class belongs to an external dependency or not
public setIsExternal ( boolean $external )
$external boolean

Property Details

$classDefinition protected property

protected ClassDefinition,zephir $classDefinition
return ClassDefinition

$compiledFile protected property

protected $compiledFile

$config protected property

protected Config,Zephir $config
return Zephir\Config

$external protected property

protected $external

$headerCBlocks protected property

protected $headerCBlocks

$logger protected property

protected Logger,Zephir $logger
return Zephir\Logger

$namespace protected property

protected string $namespace
return string