forked from fa/breadcrumb-the-shire
Added security check report field and variable
This commit is contained in:
@@ -32,10 +32,13 @@ final class SecurityCheckProcess
|
||||
public const FIELD_TEXTAREA = 'textarea';
|
||||
public const FIELD_DATETIME = 'datetime';
|
||||
|
||||
/** Field key of the official, customer-facing report written on the final step. */
|
||||
public const FIELD_CUSTOMER_REPORT = 'customer_report';
|
||||
|
||||
/**
|
||||
* Ordered fixed process steps.
|
||||
*
|
||||
* @return list<array{key: string, label: string, description: string, kind: string, fields?: list<array{key: string, label: string, type: string, required: bool}>}>
|
||||
* @return list<array{key: string, label: string, description: string, kind: string, fields?: list<array{key: string, label: string, type: string, required: bool, rows?: int}>}>
|
||||
*/
|
||||
public function steps(): array
|
||||
{
|
||||
@@ -86,10 +89,13 @@ final class SecurityCheckProcess
|
||||
'kind' => self::KIND_TECH_CHECKLIST,
|
||||
],
|
||||
[
|
||||
'key' => 'report',
|
||||
'key' => self::STEP_REPORT,
|
||||
'label' => 'Create report & notify customer',
|
||||
'description' => 'Create the report for the customer and notify them.',
|
||||
'kind' => self::KIND_STEP,
|
||||
'fields' => [
|
||||
['key' => self::FIELD_CUSTOMER_REPORT, 'label' => 'Official customer report', 'type' => self::FIELD_TEXTAREA, 'required' => true, 'rows' => 12],
|
||||
],
|
||||
],
|
||||
];
|
||||
}
|
||||
@@ -114,7 +120,7 @@ final class SecurityCheckProcess
|
||||
/**
|
||||
* Structured fields captured on a given step (info textareas, datetimes, …).
|
||||
*
|
||||
* @return list<array{key: string, label: string, type: string, required: bool}>
|
||||
* @return list<array{key: string, label: string, type: string, required: bool, rows?: int}>
|
||||
*/
|
||||
public function stepFields(string $stepKey): array
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user