Gets the abbreviation for the provided state name, if this can be found - otherwise returns null.

@param string $name
@return string|null
779307
public function getUsStateAbbreviationForName($name)
    {
        if (!in_array($name, self::$usStates)) {
            return null;
        }

        return (string) array_search($name, self::$usStates);
    }
349333
public static function get(string $name): ?string
    {
        if (isset($_ENV[$name])) {
            return $_ENV[$name];
        }

        if (isset($_SERVER[$name])) {
            return $_SERVER[$name];
        }

        $value = \getenv($name);

        return $value === false ? null : $value; // switch getenv default to null
    }
555303
public function getAnnotation($name)
    {
        $result = null;

        if ($this->hasAnnotationAndReturn($name))
        {
            if (!string_ends_with($name, 'Annotation')) $name .= 'Annotation';

            $result = isset($this->annotations[$name]) ? $this->annotations[$name] : null;

            if ($result == null)
            {
                if (string_starts_with($name, '\\'))
                    $name = substr($name, 1, strlen($name) - 1);
                else
                    $name = '\\' . $name;

                $result = isset($this->annotations[$name]) ? $this->annotations[$name] : null;
            }

            $result = $this->evaluateAnnotation($result);
        }

        return $result;
    }
1360994
public function lastByName($name) {
        for ($i = count($this->tokens) - 1; $i >= 0; $i--) {
            if ($this->tokens[$i]->getName() === $name) {
                return $this->tokens[$i];
            }
        }

        return null;
    }
387065
public function getTermVocabulary($name)
    {
        return isset($this->instances[$name]) ? $this->instances[$name] : null;
    }
877188
public static function getCharacterSetEciByName(string $name) : ?self
    {
        $nameToEci = self::nameToEci();
        $name = strtolower($name);

        if (! array_key_exists($name, $nameToEci)) {
            return null;
        }

        return $nameToEci[$name];
    }
145210
public function getParam($name)
    {
        if ( ! is_string($name) || ! isset($this->data[$name])) {
            return null;
        }

        return $this->data[$name];
    }
394315
public function getRegexp($name = null)
    {
        if ($name === null) {
            return $this->regexps;
        }
        return isset($this->regexps[$name]) ? $this->regexps[$name] : '[^/]+';
    }
286451
public function get(string $name): ?string
    {
        $key = strtolower($name);
        if (!isset($this->headers[$key])) {
            return null;
        }

        return $this->headers[$key][1];
    }
686930
public function getLastHeader(string $name) : ?string
    {
        $name = strtolower($name);

        return isset($this->headers[$name]) ? end($this->headers[$name]) : null;
    }
814496
public function getParameter($name)
    {
        $name = (string)$name;
        return array_key_exists($name, $this->_params) ? $this->_params[$name] : null;
    }
1129243
public static function extractShortNameFromFullyQualifiedName($name)
    {
        if (($pos = strrpos($name, '\\')) !== false) {
            return substr($name, $pos + 1);
        } else {
            return $name;
        }
    }
211595
public function getStateCodeByName($name) {
        $states =  array(
            "Acre"                  => "AC",
            "Alagoas"               => "AL",
            "Amazonas"              => "AM",
            "Amapá"                 => "AP",
            "Bahia"                 => "BA",
            "Ceará"                 => "CE",
            "Distrito Federal"      => "DF",
            "Espírito Santo"        => "ES",
            "Goiás"                 => "GO",
            "Maranhão"              => "MA",
            "Mato Grosso"           => "MT",
            "Mato Grosso do Sul"    => "MS",
            "Minas Gerais"          => "MG",
            "Pará"                  => "PA",
            "Paraíba"               => "PB",
            "Paraná"                => "PR",
            "Pernambuco"            => "PE",
            "Piauí"                 => "PI",
            "Rio de Janeiro"        => "RJ",
            "Rio Grande do Norte"   => "RN",
            "Rondônia"              => "RO",
            "Rio Grande do Sul"     => "RS",
            "Roraima"               => "RR",
            "Santa Catarina"        => "SC",
            "Sergipe"               => "SE",
            "São Paulo"             => "SP",
            "Tocantins"             => "TO"
        );

        if (isset($states[$name])) {
            return $states[$name];
        } else {
            return false;
        }
    }
1169954
protected function get_namefor($name = '') {
        $name = $name !== '' ? '_' . $name : '';
        return $this->subplugintype . '_' . $this->subpluginname . $name;
    }
561566
public function getFullName($name)
    {
        $prefix = $this->getPrefix();
        if (strlen($prefix) && false === strpos($name, $prefix)) {
            return $prefix . $name;
        }

        return $name;
    }
433270
private function getTypeName($name)
    {
        if (!$name) {
            return null;
        }

        if (is_string($name)) {
            return $name;
        }

        $prefix = '';
        if ($name instanceof NullableType) {
            $name   = $name->type;
            $prefix = '?';
        }

        return $prefix . $this->getFullClassName($name);
    }
389149
protected function getNamedParameterRegex($name)
    {
        if (mb_substr($name, 0, 1) == ':') {
            $name = mb_substr($name, 1);
        }

        return $this->wrapRegex($this->notInsideQuotes('\:' . preg_quote($name), false));
    }