setDescription('Create a new repository class'); $this->setHelp('php bin/hyperf.php gen:repository fileRepository'); } /** * 获取 stubs * @return string */ protected function getStub(): string { return __DIR__ . '/stubs/repository.stub'; } /** * 获取默认命名空间 * @return string */ protected function getDefaultNamespace(): string { return 'App\\Repository'; } }