Get the plural uppercase name of the resouce
@param null $name
@return null|string
175372
protected function getCollectionUpperName($name = null)
    {
        $name = str_plural($this->getResourceName($name));

        $pieces = explode('_', $name);
        $name = "";
        foreach ($pieces as $k => $str) {
            $name .= ucfirst($str);
        }

        return $name;
    }
686930
public function getLastHeader(string $name) : ?string
    {
        $name = strtolower($name);

        return isset($this->headers[$name]) ? end($this->headers[$name]) : null;
    }
387065
public function getTermVocabulary($name)
    {
        return isset($this->instances[$name]) ? $this->instances[$name] : null;
    }
471514
protected function getModelName($name = null)
    {
        $name = str_singular($this->meta['table']);

        $model = '';
        $pieces = explode('_', $name);
        foreach ($pieces as $k => $str) {
            $model = $model . ucwords($str);
        }

        return $model;
    }
660627
public function getClassName(string $name) : string
    {
        $name = str_replace("/", "\\", $name);
        $name = explode("\\", $name);
        $name = array_pop($name);
        $name = $this->removeNoneAlpherNumeric($name);
        return $name;
    }
1215827
public function get(string $name): string
    {
        $name = strtolower($name);
        return isset($this->headers[$name]) ? $this->headers[$name] : '';
    }
950406
public function get_namespace($name = null)
    {
        $ns = $this->namespace;

        if ($name) {
            // an alias for BC
            if ($name == 'prefix') {
                $name = 'prefix_in';
            }

            return isset($ns[$name]) ? $ns[$name] : null;
        }

        unset($ns['prefix_in'], $ns['prefix_out']);

        return $ns;
    }
1043003
public function getFirstAreaByName($name)
    {
        if (!isset($this->areas[$name])) {
            return null;
        }
        if (!isset($this->areas[$name][0])) {
            return null;
        }

        return $this->areas[$name][0];
    }
503309
public function getTableName($name)
    {
        if (isset($this->map[$name])) {
            return $this->map[$name]->getTable();
        }

        return null;
    }
633731
public function getCountryCodeByName($name)
    {
        if (isset($this->countryList[$name])) {
            return $this->countryList[$name];
        }

        //nothing found we try case insensitive
        $name = strtolower($name);
        foreach ($this->countryList as $countryName => $countryCode) {
            if (strtolower($countryName) == $name) {
                return $countryCode;
            }
        }

        return null;
    }
236582
protected function getOriginalName($name)
    {
        foreach (array_keys($this->headers) as $key) {
            if (strtolower($key) === strtolower($name)) {
                return $key;
            }
        }

        return false;
    }
1144733
protected function getResourcePrefix($name)
	{
		$segments = explode('/', $name);

		// To get the prefix, we will take all of the name segments and implode them on
		// a slash. This will generate a proper URI prefix for us. Then we take this
		// last segment, which will be considered the final resources name we use.
		$prefix = implode('/', array_slice($segments, 0, -1));

		return array($segments[count($segments) - 1], $prefix);
	}
1011990
public function getShortName($name)
    {
        if (!$this->isParsed) {
            $this->parseDefinitions();
        } //if

        if (isset($this->longNames[$name])) {
            return $this->longNames[$name]['shortName'];
        } else {
            return null;
        } //if
    }
29760
public function name($name = null)
    {
        if (null === $name) {
            return $this->name;
        }

        $this->name = $name;

        return $this;
    }
172380
public function getItemName($name)
    {
        $lowerName = strtolower($name);
        foreach ([
             $this->classNames,
             $this->interfaceNames,
             $this->traitNames,
         ] as $source) {
            if (isset($source[$lowerName])) {
                return $source[$lowerName];
            }
        }
        return null;
    }
960943
protected function getViewPath($name)
    {
        $pieces = explode('/', $name);

        // dont plural if reserve word
        foreach ($pieces as $k => $value) {
            if (!in_array($value, config('generators.reserve_words'))) {
                $pieces[$k] = str_plural(snake_case($pieces[$k]));
            }
        }

        $name = implode('.', $pieces);

        //$name = implode('.', array_map('str_plural', explode('/', $name)));

        return strtolower(rtrim(ltrim($name, '.'), '.'));
    }
767984
public function getFirstHeader(string $name) : ?string
    {
        $name = strtolower($name);

        return isset($this->headers[$name]) ? reset($this->headers[$name]) : null;
    }