PHP Class PSR7Sessions\Storageless\Session\LazySession

Inheritance: implements PSR7Sessions\Storageless\Session\SessionInterface
Datei anzeigen Open project: Ocramius/PSR7Session Class Usage Examples

Public Methods

Method Description
clear ( ) {@inheritDoc}
fromContainerBuildingCallback ( callable $sessionLoader ) : self
get ( string $key, $default = null ) {@inheritDoc}
has ( string $key ) : boolean {@inheritDoc}
hasChanged ( ) : boolean {@inheritDoc}
isEmpty ( ) : boolean {@inheritDoc}
jsonSerialize ( ) {@inheritDoc}
remove ( string $key ) {@inheritDoc}
set ( string $key, $value ) {@inheritDoc}

Private Methods

Method Description
__construct ( ) Instantiation via __construct is not allowed, use {@see LazySession::fromContainerBuildingCallback} instead
getRealSession ( ) : PSR7Sessions\Storageless\Session\SessionInterface Get or initialize the session
loadSession ( ) : PSR7Sessions\Storageless\Session\SessionInterface Type-safe wrapper that ensures that the given callback returns the expected type of object, when called

Method Details

clear() public method

{@inheritDoc}
public clear ( )

fromContainerBuildingCallback() public static method

public static fromContainerBuildingCallback ( callable $sessionLoader ) : self
$sessionLoader callable
return self

get() public method

{@inheritDoc}
public get ( string $key, $default = null )
$key string

has() public method

{@inheritDoc}
public has ( string $key ) : boolean
$key string
return boolean

hasChanged() public method

{@inheritDoc}
public hasChanged ( ) : boolean
return boolean

isEmpty() public method

{@inheritDoc}
public isEmpty ( ) : boolean
return boolean

jsonSerialize() public method

{@inheritDoc}
public jsonSerialize ( )

remove() public method

{@inheritDoc}
public remove ( string $key )
$key string

set() public method

{@inheritDoc}
public set ( string $key, $value )
$key string