diff options
Diffstat (limited to 'vendor/gipfl/openrpc/src/ExamplePairing.php')
-rw-r--r-- | vendor/gipfl/openrpc/src/ExamplePairing.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/vendor/gipfl/openrpc/src/ExamplePairing.php b/vendor/gipfl/openrpc/src/ExamplePairing.php new file mode 100644 index 0000000..6f34137 --- /dev/null +++ b/vendor/gipfl/openrpc/src/ExamplePairing.php @@ -0,0 +1,30 @@ +<?php + +namespace gipfl\OpenRpc; + +use JsonSerializable; + +/** + * The example Pairing object consists of a set of example params and result. + * The result is what you can expect from the JSON-RPC service given the exact + * params. + */ +class ExamplePairing implements JsonSerializable +{ + use SimpleJsonSerializer; + + /** @var string|null Name for the example pairing */ + public $name; + + /** @var string|null A verbose explanation of the example pairing */ + public $summary; + + /** @var string|null Short description for the example pairing */ + public $description; + + /** @var <Example|Reference>[] Example parameters */ + public $params; + + /** @var Example|Reference Example result */ + public $result; +} |