Files
GermanAirlinesVA-GraphQL/vendor/nuwave/lighthouse/src/Subscriptions/Contracts/ContextSerializer.php
T
Your Name aae17f10a6 new Deps
2021-07-26 19:46:18 +02:00

23 lines
454 B
PHP

<?php
namespace Nuwave\Lighthouse\Subscriptions\Contracts;
use Nuwave\Lighthouse\Support\Contracts\GraphQLContext;
interface ContextSerializer
{
/**
* Serialize the context.
*
* @return string
*/
public function serialize(GraphQLContext $context);
/**
* Unserialize the context.
*
* @return \Nuwave\Lighthouse\Support\Contracts\GraphQLContext
*/
public function unserialize(string $context);
}