A FileStore represents a store pull for save data
| package | Ant\ChateaClient\Service\Client |
|---|---|
| see |
__construct(array $config)
arrayAssociative array can configure the File store. The parameters are: file_directory The directory where save the file file_name The name of file of data SIGNED_ALGORITHM The algorithn used for signed data.
clearAllPersistentData() : void
clearPersistentData(string $key) : void
string
getPersistentData(string $key, boolean $default) : mixed
stringThe key of the data to retrieve
booleanThe default value to return if $key is not found
mixedsetPersistentData(string $key, array $value) : void
string
array
\Ant\ChateaClient\Service\Client\AuthenticationException |
|---|
getDataInFile() : array
arrayAssociative array with all data of filesaveInFile(string $content)
stringThe data to save
$config
$kSupportedKeys : array
SIGNED_ALGORITHM