a-blog cms PHP API Reference

CollectingSiteSeedLogger
in package
implements SiteSeedLogger

FinalYes

テスト / 非対話実行向け: すべてのログを配列に蓄積するだけの Logger

Tags
phpstan-type

LogRecord array{level: string, message: string, stage?: string, current?: int, total?: int, exception?: \Throwable|null}

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

Methods

error()

public error(string $message[, Throwable|null $e = null ]) : void
Parameters
$message : string
$e : Throwable|null = null

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>>

        
On this page

Search results