Facebook\HackCodegen\CodegenProperty

Generate code for a property variable

Please don’t use this class directly; instead use the function codegen_property. E.g.:

codegen_property(‘foo’) ->setProtected() ->setType(‘string’) ->setInlineComment(‘Represent the foo of the bar”) ->render();

Interface Synopsis

namespace Facebook\HackCodegen;

final class CodegenProperty implements ICodeBuilderRenderer {...}

Public Methods

Edit on GitHub