Overview

Namespaces

  • Baguette
    • Application
    • Response
    • Serializer
    • Session
  • Overview
  • Namespace
  • Class
 1:  2:  3:  4:  5:  6:  7:  8:  9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 
<?php

namespace Baguette\Session;

/**
 * Interface of Session classes
 *
 * @author    USAMI Kenta <tadsan@zonu.me>
 * @copyright 2016 Baguette HQ
 * @license   http://www.apache.org/licenses/LICENSE-2.0 Apache-2.0
 */
interface SessionInterface
{
    /**
     * @return bool
     */
    public function start();

    /**
     * @return string id
     */
    public function id($id = null);

    /**
     * @param  bool $_delete_old_session
     * @return bool
     */
    public function regenerateId($_delete_old_session = false);

    /**
     * @param  string $key
     * @param  array  $options
     * @return mixed  $value
     */
    public function get($key, array $options = []);

    /**
     * @param string $key
     * @param mixed  $value
     */
    public function set($key, $value);

    /**
     * @param string $name
     * @return string
     */
    public function name($name = null);

    /**
     * @return bool
     */
    public function destroy();
}
ξ ^ω^)ξ < Baguette Not Framework API documentation generated by ApiGen