Use named parameters for more legible code

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

No files matched your search

+3 -3
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;