AbstractStorage
    
            
            in package
            
        
    
            
            implements
                            StorageInterface                    
    
    
AbstractYes
Debug storage abstract class
Tags
Table of Contents
Interfaces
- StorageInterface
 - Debug storage interface
 
Constants
Properties
- $format : string
 - Storage format (json, php or text)
 
Methods
- __construct() : mixed
 - Constructor
 - clear() : void
 - Clear all debug data
 - decodeValue() : mixed
 - Decode the value based on the format
 - delete() : void
 - Delete debug data by id
 - encodeValue() : string
 - Encode the value based on the format
 - getById() : mixed
 - Get debug data by ID
 - getByType() : mixed
 - Get debug data by type
 - getFormat() : string|null
 - Get the storage format
 - has() : bool
 - Determine if debug data exists by
 - isJson() : bool
 - Determine if the format is JSON
 - isPhp() : bool
 - Determine if the format is PHP
 - isText() : bool
 - Determine if the format is PHP
 - save() : void
 - Save debug data
 - setFormat() : AbstractStorage
 - Set the storage format
 
Constants
JSON
    public
        mixed
    JSON
    = 'JSON'
    
    
    
PHP
    public
        mixed
    PHP
    = 'PHP'
    
    
    
TEXT
Format constants
    public
        mixed
    TEXT
    = 'TEXT'
    
    
    
Properties
$format
Storage format (json, php or text)
    protected
        string
    $format
     = 'TEXT'
    
    
    
Methods
__construct()
Constructor
    public
                    __construct([string|null $format = self::TEXT ]) : mixed
    Instantiate the storage object
Parameters
- $format : string|null = self::TEXT
 
clear()
Clear all debug data
    public
    abstract                clear() : void
    decodeValue()
Decode the value based on the format
    public
    abstract                decodeValue(mixed $value) : mixed
    Parameters
- $value : mixed
 
delete()
Delete debug data by id
    public
    abstract                delete(string $id) : void
    Parameters
- $id : string
 
encodeValue()
Encode the value based on the format
    public
    abstract                encodeValue(mixed $value) : string
    Parameters
- $value : mixed
 
Return values
stringgetById()
Get debug data by ID
    public
    abstract                getById(string $id) : mixed
    Parameters
- $id : string
 
getByType()
Get debug data by type
    public
    abstract                getByType(string $type) : mixed
    Parameters
- $type : string
 
getFormat()
Get the storage format
    public
                    getFormat() : string|null
    Return values
string|nullhas()
Determine if debug data exists by
    public
    abstract                has(string $id) : bool
    Parameters
- $id : string
 
Return values
boolisJson()
Determine if the format is JSON
    public
                    isJson() : bool
    Return values
boolisPhp()
Determine if the format is PHP
    public
                    isPhp() : bool
    Return values
boolisText()
Determine if the format is PHP
    public
                    isText() : bool
    Return values
boolsave()
Save debug data
    public
    abstract                save(string $id, mixed $value) : void
    Parameters
- $id : string
 - $value : mixed
 
setFormat()
Set the storage format
    public
                    setFormat(string $format) : AbstractStorage
    Parameters
- $format : string