Facebook\HackCodegen\CodegenUsesTrait

Describe an used trait, optionally including a comment, like:

// Generated from CowSchema::Moo() use MooInterface;

Use the methods codegen_uses_trait[s] to instantiate it. E.g.:

$trait = codegen_uses_trait(‘TFoo’) ->setComment(‘Some common foo methods’); $class = codegen_class(‘MyClass’) ->addTrait($trait);

Interface Synopsis

namespace Facebook\HackCodegen;

final class CodegenUsesTrait {...}

Public Methods

Edit on GitHub