File "MatchingMessage.php"
Full Path: /home/fundopuh/trader.fxex.org/vendor/botman/botman/src/Messages/Matching/MatchingMessage.php
File size: 1.07 KB
MIME-type: text/x-php
Charset: utf-8
<?php
namespace BotMan\BotMan\Messages\Matching;
use BotMan\BotMan\Commands\Command;
use BotMan\BotMan\Messages\Incoming\IncomingMessage;
class MatchingMessage
{
/** @var Command */
protected $command;
/** @var IncomingMessage */
protected $message;
/** @var array */
private $matches;
/**
* MatchingMessage constructor.
* @param Command $command
* @param IncomingMessage $message
* @param array $matches
*/
public function __construct(Command $command, IncomingMessage $message, array $matches)
{
$this->command = $command;
$this->message = $message;
$this->matches = $matches;
}
/**
* @return Command
*/
public function getCommand(): Command
{
return $this->command;
}
/**
* @return \BotMan\BotMan\Messages\Incoming\IncomingMessage
*/
public function getMessage(): IncomingMessage
{
return $this->message;
}
/**
* @return array
*/
public function getMatches(): array
{
return $this->matches;
}
}