Facebook\HackCodegen\HackBuilderKeys
Facebook\HackCodegen\HackBuilderKeys
Factory class for creating ` IHackBuilderKeyRenderer ` instances
Interface Synopsis
namespace Facebook\HackCodegen;
abstract final class HackBuilderKeys {...}
Public Methods
::classname(): \IHackBuilderKeyRenderer<string>
Assume the key is a classname, and render a::class
constant::export(): \IHackBuilderKeyRenderer<\arraykey>
Render the key as Hack code that produces the same value::lambda<\T as arraykey>(\callable $render): \IHackBuilderKeyRenderer<\T>
The key will be rendered with the specified lambda::literal(): \IHackBuilderKeyRenderer<string>
Render the key with no changes or escaping