Get a tag by name.

@param string $name    - name of the tag to get
@param null   $default - default value if the tag does not exist

@return mixed|null
549144
public function getTag(string $name, $default = null)
    {
        return isset($this->tags[$name]) ? $this->tags[$name] : $default;
    }
765145
public function get($name = null, $default = null)
    {
        if(null === $name)
        {
            return $this->get;
        }
        else
        {
            return $this->get[$name] ?? $default;
        }
    }
1011346
public function get($name, $default = null)
    {
        if (strpos($name, $this->sectionDelimiter) === false) {
            return parent::get($name, $default);
        }

        list($section, $property) = explode($this->sectionDelimiter, $name, 2);
        $section = ($this->offsetExists($section))? $this->get($section) : null;

        if (!$section instanceof self) {
            return $default;
        }

        return $section->get($property, $default);
    }
1014358
public function get($name, $default = null)
    {
        if (false === $this->has($name)) {
            return $default;
        }

        return $this->vars[$name];
    }
326885
public function get($name, $default = null)
    {
        if (isset($this->body[$name])) {
            return $this->body[$name];
        }

        return $default;
    }
317273
public function get($name, $default = null)
    {
        return isset($this->attributes[$name]) ? $this->attributes[$name] : $default;
    }
806879
public function getParam($name, $default = null)
    {
        $params = $this->_context->params;
        return isset($params[$name]) ? $params[$name] : $default;
    }
856062
public function get($name, $default = null)
    {
        $result = $default;
        if(isset($this->__options[$name]) || array_key_exists($name, $this->__options)) {
            $result = $this->__options[$name];
        }

        return $result;
    }
547880
public function getFirstTag($name)
    {
        foreach ($this->tags as $i => $tag) {
            if (strtolower($tag->getName()) == $name) {
                return $this->tags[$i];
            }
        }

        return null;
    }
839841
protected function getQueryParam($name, $default = null)
    {
        return isset($this->request->getQueryParams()[$name]) ? $this->request->getQueryParams()[$name] : $default;
    }
1225022
public function get(string $name, $default = null)
    {
        $key = strtolower($name);
        if (!array_key_exists($key, $this->headers)) {
            return $default;
        }

        return $this->headers[$key]->getValuesAsString();
    }
9353
public function get($name, $default = null)
    {
        if (is_array($name)) {
            $result = [];

            foreach ($name as $key => $value) {
                if (is_int($key)) {
                    $result[$value] = $this->_get($value, $default);
                } else {
                    $result[$key] = $this->_get($key, $value);
                }
            }
            return $result;
        }
        return $this->_get($name, $default);
    }
348558
public function getDefault($name)
    {
        return isset($this->defaults[$name]) ? $this->defaults[$name] : null;
    }
310722
public function get(string $name, $default = null)
    {
        if (! $this->has($name)) {
            return $default;
        }

        if (isset($this->called[$name]['called'])) {
            $this->called[$name] = [
                'value' => call_user_func_array([$this->hook, 'apply'], $this->called[$name]['value'])
            ];
        }

        return $this->called[$name]['value'];
    }
418375
public function getSection($name, $default = '')
    {

        if ($this->getSectionCollection()->has($name)) {

            return $this->getSectionCollection()->get($name);
        }

        return $default;
    }
627289
public static function get(string $name, $default = null)
    {
        $names = Imi::parseDotRule($name);
        if (isset($names[0]))
        {
            $first = array_shift($names);
            if('@currentServer' === $first)
            {
                if($isCurrentServer = (RequestContext::exsits() && null !== ($server = RequestContext::getServer())))
                {
                    $first = '@server';
                    array_unshift($names, $server->getName());
                }
                else
                {
                    $first = '@app';
                }
            }
            else
            {
                $isCurrentServer = false;
            }
            if(isset(static::$configs[$first]))
            {
                $result = static::$configs[$first]->get($names, null);
            }
            if(isset($result))
            {
                return $result;
            }
            else if($isCurrentServer)
            {
                $first = '@app';
                array_shift($names);
                return static::$configs[$first]->get($names, $default);
            }
        }
        return $default;
    }
500647
public function getSection($name, $default = null)
    {
        return isset($this->getSections()[$name]) ? $this->getSections()[$name] : $default;
    }