\Drupal\strata\Tier TierMigrationReport

What one migration pass moved, and what it would not move.

The refusals are the part to read. A pass that copies nothing because every candidate still has a delta child in a nearer tier is working correctly, and a report that showed only the zero would look like a broken schedule.

Summary

Methods
Properties
Constants
__construct
isClean
summary
jsonSerialize
examined
copied
moved
bytes
intoTier
refused
problems
seconds
No public constants found
No protected methods found
No protected properties found
No protected constants found
No private methods found
No private properties found
No private constants found

Properties

$examined

$examined : int

Type

int

$copied

$copied : int

Type

int

$moved

$moved : int

Type

int

$bytes

$bytes : int

Type

int

$intoTier

$intoTier : array

Type

array<string|int, mixed>

$refused

$refused : array

Type

array<string|int, mixed>

$problems

$problems : array

Type

array<string|int, mixed>

$seconds

$seconds : float

Type

float

Methods

__construct()

__construct(int  $examined = 0, int  $copied = 0, int  $moved = 0, int  $bytes = 0, array  $intoTier = [], list  $refused = [], list  $problems = [], float  $seconds = 0.0) : mixed

Constructs a report.

Parameters

int $examined

Objects considered.

int $copied

Objects written into a further tier and verified there.

int $moved

Objects whose nearer copy was then removed. Always at most $copied.

int $bytes

Bytes copied, counted once per object rather than once per request.

array $intoTier

Tier index keyed to how many objects were copied into it.

list $refused

One line per candidate that was deliberately left where it is, with the reason.

list $problems

One line per candidate that failed, with the reason. A verified copy that could not be made is a problem; a copy that was not attempted is a refusal.

float $seconds

How long the pass took.

Returns

mixed —

isClean()

isClean() : bool

Whether every candidate the pass looked at was handled without a failure.

A refusal is not a failure; it is the pass declining to break a delta chain or to touch a tier it could not reach.

Returns

bool —

TRUE when nothing failed.

summary()

summary() : string

A one-line summary for a log entry or a command's output.

Returns

string —

The summary.

jsonSerialize()

jsonSerialize() : array<string,mixed>

{@inheritdoc}

Returns

array

The report as a plain array.