Ip\Config::get PHP Method

get() public method

public get ( string $name, mixed $default = null ) : mixed
$name string
$default mixed
return mixed
    public function get($name, $default = null)
    {
        if (array_key_exists($name, $this->config)) {
            return $this->config[$name];
        } elseif ($default instanceof \Closure) {
            /** @var $default \Closure */
            return $default();
        } else {
            return $default;
        }
    }