7516ec60cb
* add callback argument value resolver * add jms serializer support * add phpdoc * fix FrontApiClientAuthenticator
30 lines
615 B
PHP
30 lines
615 B
PHP
<?php
|
|
|
|
namespace RetailCrm\ServiceBundle\Serializer;
|
|
|
|
/**
|
|
* Interface Adapter
|
|
*
|
|
* @package RetailCrm\ServiceBundle\Serializer
|
|
*/
|
|
interface Adapter
|
|
{
|
|
/**
|
|
* @param string $data
|
|
* @param string $type
|
|
* @param string $format
|
|
*
|
|
* @return object
|
|
*/
|
|
public function deserialize(string $data, string $type, string $format = 'json'): object;
|
|
|
|
/**
|
|
* @param array $data
|
|
* @param string $type
|
|
* @param string|null $format
|
|
*
|
|
* @return object
|
|
*/
|
|
public function arrayToObject(array $data, string $type, ?string $format = null): object;
|
|
}
|