forked from loafle/openapi-generator-original
* Removed commented code * Input validation is now supported as strict JSON validation * [PHP][Symfony] Improve the implementation Closes #6614 * Generated code is tested to assure it compiles and updated README to dynamically load dependencies via composer * Updated shell script because shippable tests were failing
28 lines
572 B
PHP
28 lines
572 B
PHP
<?php
|
|
|
|
namespace Swagger\Server\Service;
|
|
|
|
interface SerializerInterface
|
|
{
|
|
/**
|
|
* Serializes the given data to the specified output format.
|
|
*
|
|
* @param object|array|scalar $data
|
|
* @param string $format
|
|
*
|
|
* @return string
|
|
*/
|
|
public function serialize($data, $format);
|
|
|
|
/**
|
|
* Deserializes the given data to the specified type.
|
|
*
|
|
* @param string $data
|
|
* @param string $type
|
|
* @param string $format
|
|
*
|
|
* @return object|array|scalar
|
|
*/
|
|
public function deserialize($data, $type, $format);
|
|
}
|