$ran
$ran : bool
What capturing one file did.
Reports the uploaded bytes separately from the file's own size, because the whole claim of the file realm is that those two numbers are different: a 2 MiB edit to a 256 MiB file uploads 2.1 MiB, and a report that only said "captured video.mp4" would hide whether that held.
__construct(bool $ran = false, string $path = '', int $blocks = 0, int $uploaded = 0, int $shared = 0, int $bytes = 0, int $length = 0, float $changedRatio = 0.0, bool $shifted = false, bool $firstCapture = false, string $skipped = '', float $seconds = 0.0) : mixed
Constructs a report.
| bool | $ran | Whether anything was stored. |
| string | $path | The file, as it was recorded. |
| int | $blocks | How many blocks the version has. |
| int | $uploaded | How many of those blocks were new. |
| int | $shared | How many were already in the store, from another version or another file. |
| int | $bytes | Bytes uploaded. |
| int | $length | The file's own length. |
| float | $changedRatio | Share of block positions whose content differs from the previous version. |
| bool | $shifted | Whether the change looks like a shift rather than an edit. |
| bool | $firstCapture | Whether this was the file's first version. |
| string | $skipped | Why nothing was stored, empty when something was. |
| float | $seconds | How long the capture took. |
skipped(string $path, string $reason, float $started) : \Drupal\strata\File\FileReport
A report for a file nothing was done to.
| string | $path | The file. |
| string | $reason | Why. |
| float | $started | When the attempt began, as a microtime float. |
The report.