/** * Add a class method * * @param MethodGenerator $method * @return InterfaceGenerator */ public function addMethod(MethodGenerator $method) { $this->methods[$method->getName()] = $method; return $this; }