api/laravel/Session/ArraySessionHandler.yaml
2024-09-26 02:03:21 -07:00

108 lines
2.1 KiB
YAML

name: ArraySessionHandler
class_comment: null
dependencies:
- name: InteractsWithTime
type: class
source: Illuminate\Support\InteractsWithTime
- name: SessionHandlerInterface
type: class
source: SessionHandlerInterface
- name: InteractsWithTime
type: class
source: InteractsWithTime
properties:
- name: storage
visibility: protected
comment: '# * The array of stored values.
# *
# * @var array'
- name: minutes
visibility: protected
comment: '# * The number of minutes the session should be valid.
# *
# * @var int'
methods:
- name: __construct
visibility: public
parameters:
- name: minutes
comment: "# * The array of stored values.\n# *\n# * @var array\n# */\n# protected\
\ $storage = [];\n# \n# /**\n# * The number of minutes the session should be valid.\n\
# *\n# * @var int\n# */\n# protected $minutes;\n# \n# /**\n# * Create a new array\
\ driven handler instance.\n# *\n# * @param int $minutes\n# * @return void"
- name: open
visibility: public
parameters:
- name: savePath
- name: sessionName
comment: '# * {@inheritdoc}
# *
# * @return bool'
- name: close
visibility: public
parameters: []
comment: '# * {@inheritdoc}
# *
# * @return bool'
- name: read
visibility: public
parameters:
- name: sessionId
comment: '# * {@inheritdoc}
# *
# * @return string|false'
- name: write
visibility: public
parameters:
- name: sessionId
- name: data
comment: '# * {@inheritdoc}
# *
# * @return bool'
- name: destroy
visibility: public
parameters:
- name: sessionId
comment: '# * {@inheritdoc}
# *
# * @return bool'
- name: gc
visibility: public
parameters:
- name: lifetime
comment: '# * {@inheritdoc}
# *
# * @return int'
- name: calculateExpiration
visibility: protected
parameters:
- name: seconds
comment: '# * Get the expiration time of the session.
# *
# * @param int $seconds
# * @return int'
traits:
- Illuminate\Support\InteractsWithTime
- SessionHandlerInterface
- InteractsWithTime
interfaces:
- SessionHandlerInterface