Template
SampleAudit
A template audit class to implement a real audit from.
Class: Drutiny\Audit\Template\SampleAudit
Extends: Drutiny\Audit
Package: drutiny/drutiny
Parameters
Name | Type | Description | Default |
---|---|---|---|
foo | string | array | integer |
Tokens
Name | Type | Description | Default |
---|---|---|---|
foo | string | array | integer |
data | array | An array that maybe used by a policy in the outcome messaging. | { } |
Source
public function audit(Sandbox $sandbox)
{
// Example usage of Parameters and Tokens.
// See annotations in class doc block.
$foo = $sandbox->getParameter('foo');
$sandbox->setParameter('data', [$foo]);
// TODO: Write audit.
throw new \Exception("Audit needs to be created.");
}
SampleRemediableAudit
A template audit class to implement a real audit from.
Class: Drutiny\Audit\Template\SampleRemediableAudit
Extends: Drutiny\Audit
Package: drutiny/drutiny
This class can remediate failed audits.
Parameters
Name | Type | Description | Default |
---|---|---|---|
foo | string | array | integer |
Tokens
Name | Type | Description | Default |
---|---|---|---|
foo | string | array | integer |
data | array | An array that maybe used by a policy in the outcome messaging. | { } |
Source
public function audit(Sandbox $sandbox)
{
// Example usage of Parameters and Tokens.
// See annotations in class doc block.
$foo = $sandbox->getParameter('foo');
$sandbox->setParameter('data', [$foo]);
// TODO: Write audit.
throw new \Exception("Audit needs to be created.");
}