src/Koldy/Cookie.php
public static function get(string $key): ?string
    {
        if (isset($_COOKIE) && array_key_exists($key, $_COOKIE)) {
            return Crypt::decrypt($_COOKIE[$key]);
        }

        return null;
    }
public static function get(string $key): ?string
    {
        if (isset($_COOKIE) && array_key_exists($key, $_COOKIE)) {
            return Crypt::decrypt($_COOKIE[$key]);
        }

        return null;
    }
public static function get ( string $ key ) : ? string { if ( isset ( $ _COOKIE ) && array_key_exists ( $ key , $ _COOKIE ) ) { return Crypt :: decrypt ( $ _COOKIE [ $ key ] ) ; } return null ; }
Get the value from encrypted cookie value

@param string $key

@return string or null if cookie value doesn't exist
@throws Config\Exception
@throws Crypt\Exception
@throws Crypt\MalformedException
@throws Exception
Get the value from encrypted cookie value