12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?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;
- }
|