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);
    }
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);
    }
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 ) ; }
Generate the class constant code.

@return string
Generate the class constant code .