| Current Path : /var/www/clients/client3/web2/web/vendor/magento/framework-message-queue/ |
| Current File : /var/www/clients/client3/web2/web/vendor/magento/framework-message-queue/Envelope.php |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Framework\MessageQueue;
use Magento\Framework\MessageQueue\EnvelopeInterface;
class Envelope implements EnvelopeInterface
{
/**
* @var array
*/
private $properties;
/**
* @var string
*/
private $body;
/**
* @param string $body
* @param array $properties
*/
public function __construct($body, array $properties = [])
{
$this->body = $body;
$this->properties = $properties;
}
/**
* {@inheritdoc}
*/
public function getBody()
{
return $this->body;
}
/**
* {@inheritdoc}
*/
public function getProperties()
{
return $this->properties;
}
}