aboutsummaryrefslogtreecommitdiffhomepage
path: root/services/app/src/Form/FormItem.php
diff options
context:
space:
mode:
Diffstat (limited to 'services/app/src/Form/FormItem.php')
-rw-r--r--services/app/src/Form/FormItem.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/services/app/src/Form/FormItem.php b/services/app/src/Form/FormItem.php
new file mode 100644
index 0000000..47fe9c9
--- /dev/null
+++ b/services/app/src/Form/FormItem.php
@@ -0,0 +1,18 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Nsfisis\Albatross\Form;
+
+final class FormItem
+{
+ public function __construct(
+ public readonly string $name,
+ public readonly string $type,
+ public readonly ?string $label = null,
+ public readonly bool $isRequired = false,
+ public readonly bool $isDisabled = false,
+ public readonly string $extra = '',
+ ) {
+ }
+}