Library/ClassConstant.php
public function processValue(CompilationContext $compilationContext)
    {
        if ('constant' == $this->value['type']) {
            $constant = new Constants();
            $compiledExpression = $constant->compile($this->value, $compilationContext);

            $this->value = [
                'type' => $compiledExpression->getType(),
                'value' => $compiledExpression->getCode(),
            ];

            return;
        }

        if ('static-constant-access' == $this->value['type']) {
            $staticConstantAccess = new StaticConstantAccess();
            $compiledExpression = $staticConstantAccess->compile($this->value, $compilationContext);

            $this->value = [
                'type' => $compiledExpression->getType(),
                'value' => $compiledExpression->getCode(),
            ];

            return;
        }
    }
public function processValue(CompilationContext $compilationContext)
    {
        if ('constant' == $this->value['type']) {
            $constant = new Constants();
            $compiledExpression = $constant->compile($this->value, $compilationContext);

            $this->value = [
                'type' => $compiledExpression->getType(),
                'value' => $compiledExpression->getCode(),
            ];

            return;
        }

        if ('static-constant-access' == $this->value['type']) {
            $staticConstantAccess = new StaticConstantAccess();
            $compiledExpression = $staticConstantAccess->compile($this->value, $compilationContext);

            $this->value = [
                'type' => $compiledExpression->getType(),
                'value' => $compiledExpression->getCode(),
            ];

            return;
        }
    }
public function processValue ( CompilationContext $ compilationContext ) { if ( 'constant' == $ this -> value [ 'type' ] ) { $ constant = new Constants ( ) ; $ compiledExpression = $ constant -> compile ( $ this -> value , $ compilationContext ) ; $ this -> value = [ 'type' => $ compiledExpression -> getType ( ) , 'value' => $ compiledExpression -> getCode ( ) , ] ; return ; } if ( 'static-constant-access' == $ this -> value [ 'type' ] ) { $ staticConstantAccess = new StaticConstantAccess ( ) ; $ compiledExpression = $ staticConstantAccess -> compile ( $ this -> value , $ compilationContext ) ; $ this -> value = [ 'type' => $ compiledExpression -> getType ( ) , 'value' => $ compiledExpression -> getCode ( ) , ] ; return ; } }
Process the value of the class constant if needed.

@param CompilationContext $compilationContext

@throws Exception
Process the value of the class constant if needed .