Get the class name of the probable associated model.

@param $name
@return string
494177
protected function getModelClass($name)
    {
        $modelClass = $this->getModelNameInput();

        // Generate the model class from the repository class name if not explicitly set
        if ( ! $modelClass) {

            $repositoryClass = str_replace($this->getNamespace($name) . '\\', '', $name);
            $class           = str_replace($this->suffix, '', $repositoryClass);

            $modelClass = str_singular($class);
        }

        // Append the expected models namespace if not namespaced yet
        if (false === strpos($modelClass, '\\')) {
            $modelClass = "{$this->models}\\{$modelClass}";
        }

        return $modelClass;
    }
338904
private function getFilterClass($name)
	{
		if (isset($this->extensions[$name]))
			return $this->extensions[$name];

		if (class_exists($class = 'Sprockets\Filter\\' . ucfirst($name)))
			return $class;

		return false;
	}
533926
protected function getProvider($name) {
        $k = ObjectHelper::getShortName($name);
        $v = $this->getIndex()[$k];
        if (null === $v) {
            return null;
        }
        return $this->getProviders()[$v];
    }
597519
protected function determineAssociationsByName($name)
    {
        $associationsFilter = new AssociationsFilter();
        $associationsFilter->setName($name);

        $associations = $this->associationRepository->findAssociationsByRootAssociations($associationsFilter);

        return $associations;
    }
458538
public function getModel($name)
    {
        $this->isAppReady();

        if (!$this->hasModel($name)) {
            throw new LookupError(
                sprintf('The model { %s } Does not exist', $name)
            );
        }

        return $this->allModels[$name];
    }
302679
protected function getShortNameForController($name): string
    {
        return camel_case(str_replace_last($this->server->postfix, '', class_basename($name)));
    }
1139390
protected function getModelValueAttribute($name)
    {
        $key = $this->transformKey($name);

        if (method_exists($this->model, 'getFormValue')) {
            return $this->model->getFormValue($key);
        }

        return data_get($this->model, $this->transformKey($name));
    }
1276879
protected function buildClass($name)
    {
        $model = $this->option('model')
            ? $this->parseModel($this->option('model'))
            : 'Model';

        $stub = $this->files->get($this->getStub());
        $stub = $this->replaceNamespace($stub, $name)->replaceClass($stub, $name);

        return str_replace(
            'DummyModel', $model, $stub
        );
    }
668616
protected function getModelValueAttribute($name)
    {
        if (is_object($this->model))
        {
            return object_get($this->model, $this->transformKey($name));
        }
        elseif (is_array($this->model))
        {
            return array_get($this->model, $this->transformKey($name));
        }
    }
762181
protected function resolveClassName(Name $name): Name
    {
        // Skip all names except special `self`
        if (strtolower($name->toString()) !== 'self') {
            return $name;
        }

        // Save the original name
        $originalName = $name;
        $name = clone $originalName;
        $name->setAttribute('originalName', $originalName);

        $fullClassName    = Name::concat($this->namespace, $this->className);
        $resolvedSelfName = new FullyQualified('\\' . ltrim($fullClassName->toString(), '\\'), $name->getAttributes());

        $this->replacedNodes[] = $resolvedSelfName;

        return $resolvedSelfName;
    }
1255297
protected function getPropertyClassName($name)
    {
        $name = ucfirst($name);
        if (!$this->php7ClassNames) {
            return $name;
        }

        if (substr($name, -8) == 'Property') {
            return $name;
        }

        return $name.'Property';
    }
590089
public static function getPluginClass(string $name): string
    {
        $class = "";
        if (empty($name) === false && empty(self::$plugin_classes[$name]) === false) {
            $class = self::$plugin_classes[$name];
        }
        return $class;
    }
1156540
public function nameGetAttributes($name) {
    return Attributes::create(
      isset($this->attributes[$name]) ? $this->attributes[$name] : [],
      isset($this->classes[$name]) ? $this->classes[$name] : []);
  }
742467
public function getHasManyByRelationName($name)
    {
        if ($table = $this->getReferencingTable($name)) {
            if ($model = static::getModelFromTable($table)) {
                $refField = $this->getReferencingField($table, $name);

                return $this->hasMany($model, $refField);
            }
        }

        return null;
    }
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);
    }
1245024
public function getCacheFilename($name)
    {
        if (false === $this->cache) {
            return false;
        }

        $class = substr($this->getTemplateClass($name), strlen($this->templateClassPrefix));

        return $this->getCache().'/'.substr($class, 0, 2).'/'.substr($class, 2, 2).'/'.substr($class, 4).'.php';
    }
930137
public static function getInstance($name)
	{
		$model = sprintf('\\%sAdmin', Str::studly($name));
		$model = new $model;

		return $model;
	}