diff options
author | Wolfy-J <[email protected]> | 2020-12-14 13:27:35 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2020-12-14 13:27:35 +0300 |
commit | 00b42663891713f142a6cc67bcccdc31353daeb2 (patch) | |
tree | 1c3966f18c15f3815e47cb065917b314be23472c /tests/src/Payload.php | |
parent | 8203dc4d76624f4fceddff49b8a1aba9d525fc73 (diff) |
- removed old RoadRunner code
- added new RR source code
Diffstat (limited to 'tests/src/Payload.php')
-rw-r--r-- | tests/src/Payload.php | 43 |
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; + } +} |