public function generate()
    {
        $code = array();

        $doc = $this->generateDocumentation();
        if ($doc !== null) {
            $code[] = $doc;
        }

        $code[] = $this->getIndentation() . 'const ' . $this->name . ' = ' . $this->value->generate() . ';';

        return implode($this->getLineFeed(), $code);
    }