mirror of
https://github.com/bdnugget/magento2.git
synced 2026-11-07 17:27:36 +00:00
44 lines
778 B
PHP
44 lines
778 B
PHP
<?php
|
|
/**
|
|
* Copyright © Magento, Inc. All rights reserved.
|
|
* See COPYING.txt for license details.
|
|
*/
|
|
namespace Magento\Analytics\Model\Connector\Http;
|
|
|
|
/**
|
|
* Represents converter interface for http request and response body.
|
|
*
|
|
* @api
|
|
* @since 100.2.0
|
|
*/
|
|
interface ConverterInterface
|
|
{
|
|
/**
|
|
* @param string $body
|
|
*
|
|
* @return array
|
|
* @since 100.2.0
|
|
*/
|
|
public function fromBody($body);
|
|
|
|
/**
|
|
* @param array $data
|
|
*
|
|
* @return string
|
|
* @since 100.2.0
|
|
*/
|
|
public function toBody(array $data);
|
|
|
|
/**
|
|
* @return string
|
|
* @since 100.2.0
|
|
*/
|
|
public function getContentTypeHeader();
|
|
|
|
/**
|
|
* @return string
|
|
* @since 100.3.0
|
|
*/
|
|
public function getContentMediaType(): string;
|
|
}
|