aboutsummaryrefslogtreecommitdiffhomepage
path: root/services/app/src/Form/FormItem.php
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-01-17 02:11:31 +0900
committernsfisis <nsfisis@gmail.com>2024-01-17 02:11:31 +0900
commitdeacd0dfc195bca41af631114804d29937337cd8 (patch)
treef1f83580e5bc892c0794ac41632bc0cce3498f65 /services/app/src/Form/FormItem.php
parent38ddeb28ec846ee966d0fe6873585d697a9ef373 (diff)
downloadphperkaigi-2024-albatross-deacd0dfc195bca41af631114804d29937337cd8.tar.gz
phperkaigi-2024-albatross-deacd0dfc195bca41af631114804d29937337cd8.tar.zst
phperkaigi-2024-albatross-deacd0dfc195bca41af631114804d29937337cd8.zip
.
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 = '',
+ ) {
+ }
+}