src/models/UserSetting.php
public function get($key, $default = null)
    {
        $array = $this->data;
        foreach (explode(self::SEPERATOR, $key) as $item) {
            if (is_array($array) && array_key_exists($item, $array)) {
                $array = $array[$item];
            } else {
                return $default;
            }
        }

        return $array;
    }
public function get($key, $default = null)
    {
        $array = $this->data;
        foreach (explode(self::SEPERATOR, $key) as $item) {
            if (is_array($array) && array_key_exists($item, $array)) {
                $array = $array[$item];
            } else {
                return $default;
            }
        }

        return $array;
    }
public function get ( $ key , $ default = null ) { $ array = $ this -> data ; foreach ( explode ( self :: SEPERATOR , $ key ) as $ item ) { if ( is_array ( $ array ) && array_key_exists ( $ item , $ array ) ) { $ array = $ array [ $ item ] ; } else { return $ default ; } } return $ array ; }
Get a key of the user settings, dot notation is allowed to return a key of an array.

@param string $key
@param string|bool|null $default
@return string|array|null
Get a key of the user settings dot notation is allowed to return a key of an array .