PHP Класс Zephir\CompilerFileAnonymous

This class represents an anonymous file created to dump the code produced by an internal closure
Показать файл Открыть проект

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

Свойство Тип Описание
$classDefinition ClassDefinition
$compiledFile
$config Zephir\Config
$external
$headerCBlocks
$logger Zephir\Logger
$namespace string

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

Метод Описание
__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

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

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

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

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

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

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

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

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

public getClassDefinition ( ) : ClassDefinition
Результат ClassDefinition

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

Returns the path to the compiled file
public getCompiledFile ( ) : string
Результат string

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

public isExternal ( ) : boolean
Результат boolean

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

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

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

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

protected ClassDefinition,zephir $classDefinition
Результат ClassDefinition

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

protected $compiledFile

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

protected Config,Zephir $config
Результат Zephir\Config

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

protected $external

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

protected $headerCBlocks

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

protected Logger,Zephir $logger
Результат Zephir\Logger

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

protected string $namespace
Результат string