MMOframework
Pourquoi l'IA Playground Bibliothèques Développeurs Agence
FR EN
Créer un projet en direct
Index

aCheck

MMO\core\compliance · 1 symbole · générée le 30 Nov 2026

class

aCheck

aCheck.php:24

One automatic check of an information security management system (ISO/IEC 27001:2022 art. 9.1, A.5.36): what a library or a project can tell by itself about the measures of the annex A it implements -- the second factor of the privileged accounts, the chain of the journal, the age of the last restore test... -- as a result per measure (RESULTS), with a detail and its evidence. Reads only: a check never changes a setting nor a record.

abstract class MMO\core\compliance\aCheck
Espace de noms
MMO\core\compliance
Each library (or project) declares its checks in its bootstrap ([`Checks::Register`](https://mmoframework.fr/fr/documentation/mmo.core/php/compliance/Checks.md#checks-register)); `php admin.php compliance` runs those of the application ([`SCOPE`](https://mmoframework.fr/fr/documentation/mmo.core/php/compliance/aCheck.md#acheck-scope) `application`), the hub's `php tools/mmo.php iso27001` those of the hub (`hub`) and the application's, and writes them into the statement of applicability (docs/Compliance.md).
class MfaCheck extends aCheck { const string NAME = 'oauth.mfa'; const array MEASURES = ['5.17', '8.2', '8.5']; public function label(): string {return 'Second factor of the privileged accounts';} public function run(): array {return static::Result(self::PARTIAL, '3 of 14 privileged accounts have one.');} } \MMO\core\compliance\Checks::Register(MfaCheck::class);

Index

ABSENTnot met
CONFORMthe measure is met, as far as this check sees
ERRORthe check failed to run: not a result of the measure
MANUALonly a person can tell (a review, a test on a real target): the check says what to look at
MEASURES
NAME
PARTIALin part: the tool is there, its setting or its use is not complete
RESULTSevery result, from the best
SCOPE
UNAVAILABLEthe check cannot run here (its tool, its data or its site is missing): not an error
context readonly
Combine($results) static
label() abstract
Result($result, $detail, $vars, $evidence, $data) static
run() abstract
unavailable()
__construct($context)

Constantes10

ABSENT

not met

const ABSENT = 'absent'

CONFORM

the measure is met, as far as this check sees

const CONFORM = 'conforme'

ERROR

the check failed to run: not a result of the measure

const ERROR = 'erreur'

MANUAL

only a person can tell (a review, a test on a real target): the check says what to look at

const MANUAL = 'manuel'

MEASURES

const MEASURES = []

NAME

const NAME = ''

PARTIAL

in part: the tool is there, its setting or its use is not complete

const PARTIAL = 'partiel'

RESULTS

every result, from the best

const RESULTS = ['conforme', 'partiel', 'absent', 'manuel', 'erreur', 'non disponible']

SCOPE

const SCOPE = 'application'

UNAVAILABLE

the check cannot run here (its tool, its data or its site is missing): not an error

const UNAVAILABLE = 'non disponible'

Propriétés1

context

readonly
readonly array $context
Type
array

Méthodes6

Combine($results)

staticaCheck.php:87
static function Combine(string ...$results): string
...$resultsstring
retournestringthe result of several: conform when all are, absent when all are, partial otherwise -- what is manual, unavailable or an error says nothing of the measure and is left out (manual when nothing is left)

label()

abstractaCheck.php:57
abstract function label(): string
retournestringwhat it checks, in a few words (English, translated by the dictionaries)

Result($result, $detail, $vars, $evidence, $data)

staticaCheck.php:78
protected static function Result( string $result, string $detail, array $vars = [], array $evidence = [], array $data = [] ): array
$resultstringone of RESULTS
$detailstringEnglish, with its {placeholders} (translated here)
$vars = []array
$evidence = []array
$data = []array
retournearraystring, detail: string, evidence: list<string>, data: array<string, mixed>}

run()

abstractaCheck.php:63
abstract function run(): array
retournearraystring, detail: string, evidence?: list<string>, data?: array<string, mixed>} its result (one of RESULTS), what it saw in a sentence, the evidence (paths with their aliases, commands), and data for a report

__construct($context)

aCheck.php:54
function __construct(array $context = [])
$context = []array