Skip to content
docsv0.24.0

PostconditionCheck

One postcondition a `make` run promised: a named consequence, whether it was actually found on disk, and whether its absence should fail the run. `$required` is the line between a dangling reference and a handed-off decision: a missing `required` consequence (the entity file, the repository registration, a referenced enum) means the scaffold is internally inconsistent and the run is {@see PostconditionReport::ok()} `false`; a missing NON-required one (registering the plugin in `config/plugins.php` — the activation decision `make` deliberately hands to a human) is reported as advisory and never fails the run.

PostconditionCheck::__construct()

public function __construct(string $name, bool $ok, string $detail, bool $required = true):

Parameters

Parameters of __construct()
NameTypeDescription
$namestringstable identifier of the promised consequence (e.g. `entity_file`, `repository_registered`, `enum:Status`)
$okboolwhether the consequence was actually found
$detailstringhuman-readable one-line explanation of what was checked and the outcome
$requiredboolwhether a missing consequence fails the run (`true`) or is advisory only (`false`)