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