Library/ClassConstant.php
public function compile(CompilationContext $compilationContext)
    {
        $this->processValue($compilationContext);

        $constanValue = isset($this->value['value']) ? $this->value['value'] : null;

        $compilationContext->backend->declareConstant(
            $this->value['type'],
            $this->getName(),
            $constanValue,
            $compilationContext
        );
    }
public function compile(CompilationContext $compilationContext)
    {
        $this->processValue($compilationContext);

        $constanValue = isset($this->value['value']) ? $this->value['value'] : null;

        $compilationContext->backend->declareConstant(
            $this->value['type'],
            $this->getName(),
            $constanValue,
            $compilationContext
        );
    }
public function compile ( CompilationContext $ compilationContext ) { $ this -> processValue ( $ compilationContext ) ; $ constanValue = isset ( $ this -> value [ 'value' ] ) ? $ this -> value [ 'value' ] : null ; $ compilationContext -> backend -> declareConstant ( $ this -> value [ 'type' ] , $ this -> getName ( ) , $ constanValue , $ compilationContext ) ; }
Produce the code to register a class constant.

@param CompilationContext $compilationContext

@throws CompilerException
@throws Exception
Produce the code to register a class constant .