CollectingSiteSeedLogger
in package
implements
SiteSeedLogger
FinalYes
テスト / 非対話実行向け: すべてのログを配列に蓄積するだけの Logger
Tags
Table of Contents
Interfaces
- SiteSeedLogger
- SiteSeeder::seed() に渡す進捗/警告通知インタフェース
Properties
- $records : array<int, array<string, mixed>>
Methods
- error() : void
- info() : void
- messages() : array<int, string>
- progress() : void
- records() : array<int, array<string, mixed>>
- warning() : void
Properties
$records
private
array<int, array<string, mixed>>
$records
= []
Methods
error()
public
error(string $message[, Throwable|null $e = null ]) : void
Parameters
- $message : string
- $e : Throwable|null = null
info()
public
info(string $message) : void
Parameters
- $message : string
messages()
public
messages() : array<int, string>
Return values
array<int, string>progress()
public
progress(string $stage, int $current, int $total) : void
Parameters
- $stage : string
- $current : int
- $total : int
records()
public
records() : array<int, array<string, mixed>>
Return values
array<int, array<string, mixed>>warning()
public
warning(string $message) : void
Parameters
- $message : string