Facebook\HackCodegen\CodegenConstant
Facebook\HackCodegen\CodegenConstant
Generate code for a constant that is not part of a class
Interface Synopsis
namespace Facebook\HackCodegen;
final class CodegenConstant extends CodegenConstantish implements ICodeBuilderRenderer {...}
Public Methods
->__construct(IHackCodegenConfig $config, string $name)->appendToBuilder(HackBuilder $builder): HackBuilder->getType(): ?string->setType(string $type): \this->setTypef(\HH\Lib\Str\SprintfFormatString $format, \mixed ...$args): \this
Set the type of the constant using a %-placeholder format string