public function getClassEntry(CompilationContext $compilationContext = null)
    {
        if ($this->external) {
            if (!\is_object($compilationContext)) {
                throw new Exception('A compilation context is required');
            }

            $this->compiler = $compilationContext->compiler;

            /*
             * Automatically add the external header
             */
            $compilationContext->headersManager->add($this->getExternalHeader(), HeadersManager::POSITION_LAST);
        }

        return strtolower(str_replace('\\', '_', $this->namespace).'_'.$this->name).'_ce';
    }