summaryrefslogtreecommitdiff
path: root/tests/src/Payload.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/Payload.php')
-rw-r--r--tests/src/Payload.php43
1 files changed, 43 insertions, 0 deletions
diff --git a/tests/src/Payload.php b/tests/src/Payload.php
new file mode 100644
index 00000000..c9b8c198
--- /dev/null
+++ b/tests/src/Payload.php
@@ -0,0 +1,43 @@
+<?php
+
+/**
+ * High-performance PHP process supervisor and load balancer written in Go.
+ *
+ * @author Wolfy-J
+ */
+
+declare(strict_types=1);
+
+namespace Spiral\RoadRunner;
+
+/**
+ * Class Payload
+ *
+ * @package Spiral\RoadRunner
+ */
+final class Payload
+{
+ /**
+ * Execution payload (binary).
+ *
+ * @var string|null
+ */
+ public ?string $body;
+
+ /**
+ * Execution context (binary).
+ *
+ * @var string|null
+ */
+ public ?string $header;
+
+ /**
+ * @param string|null $body
+ * @param string|null $header
+ */
+ public function __construct(?string $body, ?string $header = null)
+ {
+ $this->body = $body;
+ $this->header = $header;
+ }
+}