Skip to content
docsv0.1.1

PermissionRule

One permission policy checked by {@see PermissionChecker}: a file path and the maximum octal mode it may have. `maxMode` is a ceiling, not an exact match — any mode at or under it (e.g. a stricter 0600 against a 0644 ceiling) passes. The host assembles rules from its own config (Task 5); this package stays domain-blind to where the policy comes from.

PermissionRule::__construct()

public function __construct(string $path, int $maxMode, string $severity, string $label):

Parameters

Parameters of __construct()
NameTypeDescription
$pathstring
$maxModeint
$severitystring
$labelstring