/** * @param ClassConstant $constant * @param string $indent * * @return string */ protected function buildConstant(ClassConstant $constant, $indent) { $source = 'const ' . $constant->getName(); $value = $this->wrapPHPValue(array('default' => $constant->getValue())); $docBlock = new DocBlock($constant->getDocBlock(), $indent); return $docBlock . "\n" . $indent . $source . ' = ' . $value . ';'; }