Skip to content
docsv0.1.0

BoundaryValidator

A rules-based architectural-boundary gate: each {@see BoundaryRule} scans a directory and reports every non-comment PHP line referencing one of its forbidden namespace prefixes. The ENGINE is generic (any host, any rule set); the RULES are host policy — see {@see BoundaryRule}. Ported 1:1 from the monorepo's `scripts/library/validate-boundaries.php` (B5 / ADR-001 / D9).

BoundaryValidator::validate()

public function validate(array $rules, string $root): Milpa\DevTools\Validators\BoundaryReport

Checks every rule in `$rules` against `$root` and returns the combined report.

Parameters

Parameters of validate()
NameTypeDescription
$ruleslist<BoundaryRule>
$rootstring