Use named parameters for more legible code

Close #40
This commit is contained in:
2025-02-24 16:28:36 +01:00
parent 8f67d9b04d
commit 6e01abc74f
9 changed files with 583 additions and 1192 deletions

File diff suppressed because it is too large Load Diff

View File

@ -32,9 +32,9 @@ final class FieldEntry {
* @param string $explica Explanation.
*/
public function __construct(
bool $required, array $allowedValues,
array $dependsOn, string $remark,
string $name_human_readable, string $explica
bool $required = false, array $allowedValues = [],
array $dependsOn = [], string $remark = "",
string $name_human_readable = "", string $explica = ""
) {
$this->required = $required;
$this->allowedValues = $allowedValues;