summaryrefslogtreecommitdiff
path: root/tests/temporal/DTO
diff options
context:
space:
mode:
Diffstat (limited to 'tests/temporal/DTO')
-rw-r--r--tests/temporal/DTO/Message.php14
-rw-r--r--tests/temporal/DTO/User.php15
2 files changed, 29 insertions, 0 deletions
diff --git a/tests/temporal/DTO/Message.php b/tests/temporal/DTO/Message.php
new file mode 100644
index 00000000..61703fe8
--- /dev/null
+++ b/tests/temporal/DTO/Message.php
@@ -0,0 +1,14 @@
+<?php
+
+
+namespace Temporal\Tests\DTO;
+
+class Message
+{
+ public string $message;
+
+ public function __construct(string $message)
+ {
+ $this->message = $message;
+ }
+} \ No newline at end of file
diff --git a/tests/temporal/DTO/User.php b/tests/temporal/DTO/User.php
new file mode 100644
index 00000000..cefea137
--- /dev/null
+++ b/tests/temporal/DTO/User.php
@@ -0,0 +1,15 @@
+<?php
+
+
+namespace Temporal\Tests\DTO;
+
+use Temporal\Internal\Marshaller\Meta\Marshal;
+
+class User
+{
+ #[Marshal(name: "Name")]
+ public string $name;
+
+ #[Marshal(name: "Email")]
+ public string $email;
+} \ No newline at end of file