for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the slince/smartqq package.
*
* (c) Slince <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Slince\SmartQQ\Message\Response;
use Slince\SmartQQ\Message\Content;
class FriendMessage extends Message
{
/**
* 接收用户编号,也是QQ号.
* @var int
protected $toUin;
* 发信用户编号,非QQ号.
protected $fromUin;
public function __construct($toUin, $fromUin, Content $content, $time, $msgId = 0, $msgType = 0)
$this->toUin = $toUin;
$this->fromUin = $fromUin;
parent::__construct($content, $time, $msgId, $msgType);
}
* @param int $toUin
public function setToUin($toUin)
* @param int $fromUin
public function setFromUin($fromUin)
* @return int
public function getToUin()
return $this->toUin;
public function getFromUin()
return $this->fromUin;