Facebook\HackCodegen\CodegenClassWithInterfaces
Facebook\HackCodegen\CodegenClassWithInterfaces
Functionality shared by all class-like definitions that are able to implement interfaces
For example, classes and traits can implement interfaces, but enums can’t.
Interface Synopsis
namespace Facebook\HackCodegen;
trait CodegenClassWithInterfaces {...}
Public Methods
->addInterface(CodegenImplementsInterface $value): \this
->addInterfaces(\ Traversable<CodegenImplementsInterface> $interfaces): \this
->getImplements(): vec<string>
Return the list of interfaces implemented by the generated class->setInterfaces(\ Traversable<CodegenImplementsInterface> $value): \this