PHP Класс Airship\Engine\LedgerStorage\DBStore

Наследование: implements LedgerStorageInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$columns string[]
$db DBInterface
$table string

Открытые методы

Метод Описание
__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

Описание методов

__construct() публичный Метод

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

setColumn() публичный Метод

Change a column name.
public setColumn ( string $key, string $value ) : self
$key string
$value string
Результат self ($this)

store() публичный Метод

Store a log message -- used by Ledger
public store ( string $level, string $message, string $context ) : mixed
$level string
$message string
$context string (JSON encoded)
Результат mixed

Описание свойств

$columns защищенное свойство

protected string[] $columns
Результат string[]

$db защищенное свойство

protected DBInterface $db
Результат DBInterface

$table защищенное свойство

protected string $table
Результат string