Build the translation with the given name.

@param  string $name
@return string
@throws \Illuminate\Contracts\Filesystem\FileNotFoundException
438226
protected function buildTranslation($name)
    {
        $name = $this->getRouteName($name);
        $name = array_last(explode('.', $name));
        $name = str_replace('_', ' ', $name);

        $replace = [
            'dummy_model_plural_variable' => $name,
            'dummy_model_variable' => str_singular($name),
        ];

        return str_replace(array_keys($replace), array_values($replace), $this->files->get($this->getTranslationStub()));
    }
509198
protected function buildClass($name): string
    {
        $stub = parent::buildClass($name);

        $model = $this->option('model') ?? $this->modelName = $this->ask('What is your model?');

        $transformer = $this->option('transformer') ?? $this->transformerName = $this->ask('What is your transformer?');

        return $this->replaceClasses($stub, $model, $transformer);
    }
1054016
protected function buildClass($name)
    {
        $stub = file_get_contents($this->getStub());

        return $this->replaceNamespace($stub, $name)->replaceClass($stub, $name);
    }
1216394
protected function normalizeName($name)
    {
        if ($this->files->extension($name) === $this->extension) {
            $name = substr($name, 0, - (strlen($this->extension) + 1));
        }

        return $name;
    }
1083968
public function getFieldCaption(string $name): string
    {
        $caption = $this->getFieldProperty($name, 'caption');

        if ($caption) {
            return $this->translate($caption);
        }

        return $name;
    }
1022440
protected function buildClass($name)
	{
		$stub = parent::buildClass($name);

		$stub = str_replace(
			'{{command}}', class_basename($this->option('command')), $stub
		);

		$stub = str_replace(
			'{{fullCommand}}', $this->option('command'), $stub
		);

		return $stub;
	}
1215827
public function get(string $name): string
    {
        $name = strtolower($name);
        return isset($this->headers[$name]) ? $this->headers[$name] : '';
    }
1302776
protected function buildClass($name = null)
    {
        $stub = $this->files->get($this->getStub());
        return $this->replacePivotTableName($stub)
            ->replaceSchema($stub)
            ->replaceClass($stub, $name);
    }
832011
public function get($name)
    {
        if (!isset($this->formats[$name])) {
            throw new \InvalidArgumentException(sprintf(
                'Unknown format "%s", known formats: "%s"',
                $name, implode(', ', array_keys($this->formats))
            ));
        }

        return $this->formats[$name];
    }
238274
protected function buildClass($name){
        $controllerNamespace = $this->getNamespace($name);

        $replace["use {$controllerNamespace}\Controller;\n"] = '';
        $replace = array_merge($replace, [
            'DummyViewPath' => $this->replaceViewPath($name),
            'DummyServiceVar' => $this->replaceServiceVar($name),
            'DummySingularServiceVar' => $this->replaceSingularServiceVar($name),
            'DummyContract' => $this->replaceDummyContract($name)
        ]);
        //dd($replace);
        return str_replace(
            array_keys($replace), array_values($replace), parent::buildClass($name)
        );
    }
635444
protected function buildClass($name)
    {
        $namespaceModel = $this->option('model')
                        ? $this->qualifyClass($this->option('model'))
                        : trim($this->rootNamespace(), '\\').'\\Model';

        $model = class_basename($namespaceModel);

        return str_replace(
            [
                'NamespacedDummyModel',
                'DummyModel',
            ],
            [
                $namespaceModel,
                $model,
            ],
            parent::buildClass($name)
        );
    }
641382
public static function get($name)
    {
        $registry = static::getRegistry();

        if (isset($registry->{$name})) {
            return $registry->{$name};
        }

        static::_buildTransport($name);

        return $registry->{$name};
    }
26775
protected function buildClassNameFromName($name)
	{
		$class_name_parts = explode(' ', $name);

		return count($class_name_parts) == 1 ? $name : implode('', array_map('ucfirst', $class_name_parts));
	}
239187
private function getRealName(string $name): string
    {
        if (mb_strpos($name, '@ngbm/') !== 0) {
            return $name;
        }

        if (!isset($this->templateMap[$name])) {
            $this->templateMap[$name] = str_replace(
                '@ngbm/',
                '@ngbm_' . $this->configuration->getParameter('design') . '/',
                $name
            );
        }

        return $this->templateMap[$name];
    }
1304474
protected function buildClass($name){
        $controllerNamespace = $this->getNamespace($name);
        $replace = [
            'DummyServiceVar' => snake_case($this->replaceServiceVar($name)),
            'DummyModel' => $this->replaceDummyModel($name),
            'DummyContract' => $this->replaceDummyContract($name)
        ];
        return str_replace(
            array_keys($replace), array_values($replace), parent::buildClass($name)
        );
    }
633323
protected function buildClass($name)
    {
        $table_name = $this->option('table');
        if (!$table_name) {
            $class = str_replace($this->getNamespace($name).'\\', '', $name);
            $table_name = strtolower($this->plugin['config']->get('slug') . '_' .$class);
        }
        return str_replace('DummyTableName', $table_name, parent::buildClass($name));
    }
949735
protected function defaultBuildClass($name): string
    {
        $stub = $this->files->get($this->getStub());

        return $this->replaceNamespace($stub, $name)->replaceClass($stub, $name);
    }