naelrashdeen b034e4446a [PHP][Symfony] Enhancements (#6615)
* 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
2017-10-23 22:50:56 +08:00

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);
}