public static function get($key, $default = null) {

		if(false === is_string($key)) {
			return trigger_error(sprintf('Argument 1 passed to %s() must be of the type string, "%s" given', __METHOD__, gettype($key)), E_USER_ERROR);
		}

		if(true === isset(static :: $data[$key])) {
			return static :: $data[$key];
		}

		$key = rtrim(base64_encode($key), '=');

		if(true === isset(static :: $data[$key])) {
			
			$cookie = Hash :: decrypt(base64_decode(static :: $data[$key]), Application :: get('salt'));
			return false !== $cookie ? $cookie : $default;
		}

		return $default;
	}
public static function get($key, $default = null) {

		if(false === is_string($key)) {
			return trigger_error(sprintf('Argument 1 passed to %s() must be of the type string, "%s" given', __METHOD__, gettype($key)), E_USER_ERROR);
		}

		if(true === isset(static :: $data[$key])) {
			return static :: $data[$key];
		}

		$key = rtrim(base64_encode($key), '=');

		if(true === isset(static :: $data[$key])) {
			
			$cookie = Hash :: decrypt(base64_decode(static :: $data[$key]), Application :: get('salt'));
			return false !== $cookie ? $cookie : $default;
		}

		return $default;
	}
public static function get ( $ key , $ default = null ) { if ( false === is_string ( $ key ) ) { return trigger_error ( sprintf ( 'Argument 1 passed to %s() must be of the type string, "%s" given' , __METHOD__ , gettype ( $ key ) ) , E_USER_ERROR ) ; } if ( true === isset ( static :: $ data [ $ key ] ) ) { return static :: $ data [ $ key ] ; } $ key = rtrim ( base64_encode ( $ key ) , '=' ) ; if ( true === isset ( static :: $ data [ $ key ] ) ) { $ cookie = Hash :: decrypt ( base64_decode ( static :: $ data [ $ key ] ) , Application :: get ( 'salt' ) ) ; return false !== $ cookie ? $ cookie : $ default ; } return $ default ; }
Retrieve data based on key
@param string $key
@param mixed $default
@return mixed
Retrieve data based on key