<?php
/**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
*/
public function get(string $name, $defaults = null);
+ /**
+ * Retrieves a value from the provided key if it exists and removes it from session
+ *
+ * @param string $name
+ * @param mixed $defaults
+ *
+ * @return mixed
+ */
+ public function pop(string $name, $defaults = null);
+
/**
* Sets a single session variable.
* Overrides value of existing key.