]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Session/ISession.php
Merge branch 'develop' of https://github.com/friendica/friendica into develop
[friendica.git] / src / Core / Session / ISession.php
index a2046e915c63c21b4a3e18e230384460586beee5..2b2bf32e57eaac2d92deb2cc29c9c0452a7d08ed 100644 (file)
@@ -1,4 +1,23 @@
 <?php
+/**
+ * @copyright Copyright (C) 2010-2021, the Friendica project
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program.  If not, see <https://www.gnu.org/licenses/>.
+ *
+ */
 
 namespace Friendica\Core\Session;
 
@@ -29,7 +48,8 @@ interface ISession
         * Handle the case where session_start() hasn't been called and the super global isn't available.
         *
         * @param string $name
-        * @param mixed $defaults
+        * @param mixed  $defaults
+        *
         * @return mixed
         */
        public function get(string $name, $defaults = null);
@@ -39,7 +59,7 @@ interface ISession
         * Overrides value of existing key.
         *
         * @param string $name
-        * @param mixed $value
+        * @param mixed  $value
         */
        public function set(string $name, $value);
 
@@ -63,9 +83,4 @@ interface ISession
         * Clears the current session array
         */
        public function clear();
-
-       /**
-        * Kills the "Friendica" cookie and all session data
-        */
-       public function delete();
 }