RedPacket.php
434 Bytes
<?php
/**
* Created by PhpStorm.
* User: Hanson
* Date: 2017/1/15
* Time: 12:29
*/
namespace Hanson\Robot\Message\Entity;
use Hanson\Robot\Message\MessageInterface;
class RedPacket extends Message implements MessageInterface
{
public function __construct($msg)
{
parent::__construct($msg);
$this->make();
}
public function make()
{
$this->content = $this->msg['Content'];
}
}