VariableStorage
in package
Table of Contents
- $data : null|mixed
- The data to store, can be of any serializable type
- $git_repo : Git|null
- Repo instance
- $id : string|null
- The uuid the entry is stored as
- $path : string|null
- The storage path
- $prefix : string
- The storage prefix
- __construct() : mixed
- VariableStorage constructor.
- GetPath() : string
- expose the storage path provide an interface to extract the current path of this object
- GitRepo() : Git|null
- Get reference to repo
- Save() : Result
- Save to file system
Properties
$data
The data to store, can be of any serializable type
protected
null|mixed
$data
= null
$git_repo
Repo instance
protected
Git|null
$git_repo
= null
$id
The uuid the entry is stored as
protected
string|null
$id
= null
$path
The storage path
protected
string|null
$path
= null
$prefix
The storage prefix
protected
string
$prefix
Methods
__construct()
VariableStorage constructor.
public
__construct( $data[, string $prefix = '.data' ]) : mixed
Parameters
Return values
mixed —GetPath()
expose the storage path provide an interface to extract the current path of this object
public
GetPath() : string
Return values
string —the object storage path
GitRepo()
Get reference to repo
public
GitRepo() : Git|null
Return values
Git|null —Save()
Save to file system
public
Save() : Result