Skip to content
docsv0.1.0

BoundaryRuleResult

The outcome of checking one {@see BoundaryRule}: which file:line references tripped it, if any.

BoundaryRuleResult::__construct()

public function __construct(string $label, string $dir, bool $skipped, array $violations):

Parameters

Parameters of __construct()
NameTypeDescription
$labelstring
$dirstring
$skippedbool
$violationslist<string>each formatted "relative/path.php:LINE <offending line>"

BoundaryRuleResult::ok()

public function ok(): bool

True when the rule found no violations.