mirror of
https://github.com/Karaka-Management/Resources.git
synced 2026-01-10 21:08:41 +00:00
32 lines
872 B
PHP
Executable File
32 lines
872 B
PHP
Executable File
<?php
|
|
/**
|
|
* Elastic Transport
|
|
*
|
|
* @link https://github.com/elastic/elastic-transport-php
|
|
* @copyright Copyright (c) Elasticsearch B.V (https://www.elastic.co)
|
|
* @license https://opensource.org/licenses/MIT MIT License
|
|
*
|
|
* Licensed to Elasticsearch B.V under one or more agreements.
|
|
* Elasticsearch B.V licenses this file to you under the MIT License.
|
|
* See the LICENSE file in the project root for more information.
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
namespace Elastic\Transport\Serializer;
|
|
|
|
interface SerializerInterface
|
|
{
|
|
/**
|
|
* @param mixed $data
|
|
* @param array $options
|
|
* @return string
|
|
*/
|
|
public static function serialize($data, array $options = []): string;
|
|
|
|
/**
|
|
* @param string $data
|
|
* @param array $options
|
|
* @return mixed
|
|
*/
|
|
public static function unserialize(string $data, array $options = []);
|
|
} |