gnu-social/vendor/stomp-php/stomp-php/src/Transport/Message.php

30 lines
538 B
PHP

<?php
/*
* This file is part of the Stomp package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Stomp\Transport;
/**
* Basic text stomp message
*
* @package Stomp
*/
class Message extends Frame
{
/**
* Message constructor.
*
* @param string $body
* @param array $headers
*/
public function __construct($body, array $headers = [])
{
parent::__construct('SEND', $headers, $body);
}
}