added new class and started rewriting

This commit is contained in:
Nathan Eikermann 2021-04-30 21:43:31 +02:00
parent 8d432eda61
commit 699f95cd48
2 changed files with 643 additions and 619 deletions

File diff suppressed because it is too large Load Diff

View File

@ -9,7 +9,7 @@ declare(strict_types = 1);
/**
* Class holding the information for a field entry.
*/
class FieldEntry
final class FieldEntry
{
public boolean $required;
public array $allowedValues;
@ -18,4 +18,28 @@ class FieldEntry
public string $name_human_readable;
public string $explica;
/**
* 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
*/
public function __construct(
boolean $required, array $allowedValues,
array $dependsOn, string $remark,
string $name_human_readable, string $explica
) {
$this->required = $required;
$this->allowedValues = $allowedValues;
$this->dependsOn = $dependsOn;
$this->remark = $remark;
$this->name_human_readable = $name_human_readable;
$this->explica = $explica;
}
}