Facebook\HackCodegen\CodegenConstantish
Facebook\HackCodegen\CodegenConstantish
Generate code for a constant that is not part of a class
Interface Synopsis
namespace Facebook\HackCodegen;
abstract class CodegenConstantish implements ICodeBuilderRenderer {...}
Public Methods
->__construct(IHackCodegenConfig $config, string $name)->getDocBlock(): ?string->getName(): string->getValue(): ?string
Returns the value as code->setDocBlock(string $comment): \this->setValue<\T>(\T $value, \ IHackBuilderValueRenderer<\T> $renderer): \this
Set the value of the constant using a renderer