public function getCompiler(ContextInterface $context): CompilerInterface
    {
        if (empty($this->compiler)) {
            throw new EngineException("No associated compiler found.");
        }

        $this->compiler->getLoader()->setContext($context);

        return $this->compiler;
    }
public function getCompiler(ContextInterface $context): CompilerInterface
    {
        if (empty($this->compiler)) {
            throw new EngineException("No associated compiler found.");
        }

        $this->compiler->getLoader()->setContext($context);

        return $this->compiler;
    }
public function getCompiler ( ContextInterface $ context ) : CompilerInterface { if ( empty ( $ this -> compiler ) ) { throw new EngineException ( "No associated compiler found." ) ; } $ this -> compiler -> getLoader ( ) -> setContext ( $ context ) ; return $ this -> compiler ; }
Return compiler locked into specific context.

@param ContextInterface $context
@return CompilerInterface
Return compiler locked into specific context .