PHP Class PSR7Sessions\Storageless\Session\DefaultSessionData

Inheritance: implements PSR7Sessions\Storageless\Session\SessionInterface
Afficher le fichier Open project: Ocramius/PSR7Session Class Usage Examples

Méthodes publiques

Méthode Description
clear ( ) {@inheritDoc}
fromDecodedTokenData ( stdClass $data ) : self
fromTokenData ( array $data ) : self
get ( string $key, $default = null ) {@inheritDoc}
has ( string $key ) : boolean {@inheritDoc}
hasChanged ( ) : boolean {@inheritDoc}
isEmpty ( ) : boolean {@inheritDoc}
jsonSerialize ( ) {@inheritDoc}
newEmptySession ( ) : self
remove ( string $key ) {@inheritDoc}
set ( string $key, $value ) {@inheritDoc}

Private Methods

Méthode Description
__construct ( ) Instantiation via __construct is not allowed, use - {@see DefaultSessionData::fromDecodedTokenData} - {@see DefaultSessionData::fromTokenData} - {@see DefaultSessionData::newEmptySession} instead
convertValueToScalar ( integer | boolean | string | float | array | object | JsonSerializable $value ) : integer | boolean | string | float | array

Method Details

clear() public méthode

{@inheritDoc}
public clear ( )

fromDecodedTokenData() public static méthode

public static fromDecodedTokenData ( stdClass $data ) : self
$data stdClass
Résultat self

fromTokenData() public static méthode

public static fromTokenData ( array $data ) : self
$data array
Résultat self

get() public méthode

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

has() public méthode

{@inheritDoc}
public has ( string $key ) : boolean
$key string
Résultat boolean

hasChanged() public méthode

{@inheritDoc}
public hasChanged ( ) : boolean
Résultat boolean

isEmpty() public méthode

{@inheritDoc}
public isEmpty ( ) : boolean
Résultat boolean

jsonSerialize() public méthode

{@inheritDoc}
public jsonSerialize ( )

newEmptySession() public static méthode

public static newEmptySession ( ) : self
Résultat self

remove() public méthode

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

set() public méthode

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