Finish cleanup of available field generation

This commit is contained in:
2022-11-07 15:48:00 +01:00
parent 7fd6b18af1
commit 2e349568e7
5 changed files with 28 additions and 25 deletions

View File

@ -11,22 +11,25 @@ declare(strict_types = 1);
*/
final class FieldEntry {
public bool $required;
public array $allowedValues;
public array $dependsOn;
public string $remark;
public string $name_human_readable;
public string $explica;
public readonly bool $required;
public readonly string $remark;
public readonly string $name_human_readable;
public readonly string $explica;
/** @var array<string> */
public readonly array $allowedValues;
/** @var array<string> */
public readonly array $dependsOn;
/**
* Function for constructing a new FieldEntry Object.
*
* @param boolean $required True if the field is required.
* @param array $allowedValues Array of allowed values.
* @param array $dependsOn Array of fields the entry depends on.
* @param string $remark String variable.
* @param string $name_human_readable Human readable translation.
* @param string $explica String variable
* @param boolean $required True if the field is required.
* @param array<string> $allowedValues Array of allowed values.
* @param array<string> $dependsOn Array of fields the entry depends on.
* @param string $remark Remark.
* @param string $name_human_readable Human readable translation.
* @param string $explica Explanation.
*/
public function __construct(
bool $required, array $allowedValues,