PHP Class Airship\Engine\LedgerStorage\DBStore

Inheritance: implements LedgerStorageInterface
Show file Open project: paragonie/airship

Protected Properties

Property Type Description
$columns string[]
$db DBInterface
$table string

Public Methods

Method Description
__construct ( DBInterface $db = null, string $table = self::DEFAULT_TABLE ) DBStore constructor.
setColumn ( string $key, string $value ) : self Change a column name.
store ( string $level, string $message, string $context ) : mixed Store a log message -- used by Ledger

Method Details

__construct() public method

DBStore constructor.
public __construct ( DBInterface $db = null, string $table = self::DEFAULT_TABLE )
$db DBInterface
$table string

setColumn() public method

Change a column name.
public setColumn ( string $key, string $value ) : self
$key string
$value string
return self ($this)

store() public method

Store a log message -- used by Ledger
public store ( string $level, string $message, string $context ) : mixed
$level string
$message string
$context string (JSON encoded)
return mixed

Property Details

$columns protected property

protected string[] $columns
return string[]

$db protected property

protected DBInterface $db
return DBInterface

$table protected property

protected string $table
return string