硕顺crm后台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

34 lines
583 B

<?php
namespace WeWork\Message;
class Markdown implements \WeWork\Message\ResponseMessageInterface
{
/**
* @var string
*/
private $content;
/**
* Markdown constructor.
* @param string $content
*/
public function __construct(string $content)
{
$this->content = $content;
}
/**
* @inheritDoc
*/
public function formatForResponse(): array
{
return [
'msgtype' => 'markdown',
'markdown' => [
'content' => $this->content,
]
];
}
}