Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
Envelope Class Reference
Inheritance diagram for Envelope:
EnvelopeInterface

Public Member Functions

 __construct ($body, array $properties=[])
 
 getBody ()
 
 getProperties ()
 

Detailed Description

Definition at line 10 of file Envelope.php.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $body,
array  $properties = [] 
)
Parameters
string$body
array$properties

Definition at line 26 of file Envelope.php.

27  {
28  $this->body = $body;
29  $this->properties = $properties;
30  }

Member Function Documentation

◆ getBody()

getBody ( )

{Binary representation of message

Returns
string
}

Implements EnvelopeInterface.

Definition at line 35 of file Envelope.php.

36  {
37  return $this->body;
38  }

◆ getProperties()

getProperties ( )

{Message metadata

Returns
array
}

Implements EnvelopeInterface.

Definition at line 43 of file Envelope.php.

44  {
45  return $this->properties;
46  }

The documentation for this class was generated from the following file: