function checkout() {
		if (isset($_SESSION[$this->key])) {
			$out=$_SESSION[$this->key];
			unset($_SESSION[$this->key]);
			return $out;
		}
		return [];
	}
function checkout() {
		if (isset($_SESSION[$this->key])) {
			$out=$_SESSION[$this->key];
			unset($_SESSION[$this->key]);
			return $out;
		}
		return [];
	}
function checkout ( ) { if ( isset ( $ _SESSION [ $ this -> key ] ) ) { $ out = $ _SESSION [ $ this -> key ] ; unset ( $ _SESSION [ $ this -> key ] ) ; return $ out ; } return [ ] ; }
Check out basket contents
@return array
Check out basket contents