Skip to content
docsv0.1.0

VerificationResult

The outcome of running a {@see ControllerVerifier} or {@see EntityVerifier} against one class: a short subject label, the hard failures (`errors`), and the non-fatal advisories (`warnings`). `ok` is true whenever there are no errors — warnings alone never fail a verify run, matching the original `scripts/verify-*.php` exit-code contract (exit 0 on warnings-only).

VerificationResult::__construct()

public function __construct(string $subject, array $errors, array $warnings = []):

Parameters

Parameters of __construct()
NameTypeDescription
$subjectstring
$errorslist<string>
$warningslist<string>

VerificationResult::ok()

public function ok(): bool

True when there are no {@see self::$errors} — warnings alone never fail a verify run.

VerificationResult::render()

public function render(): string

Human-readable one-banner-plus-bullets report, in the spirit of the original CLI scripts.