| 1 | <?php |
||
| 15 | class FriendMessage extends Message |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * 接收用户编号,也是QQ号. |
||
| 19 | * |
||
| 20 | * @var int |
||
| 21 | */ |
||
| 22 | protected $toUin; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * 发信用户编号,非QQ号. |
||
| 26 | * |
||
| 27 | * @var int |
||
| 28 | */ |
||
| 29 | protected $fromUin; |
||
| 30 | |||
| 31 | public function __construct($toUin, $fromUin, Content $content, $time, $msgId = 0, $msgType = 0) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @param int $toUin |
||
| 40 | */ |
||
| 41 | public function setToUin($toUin) |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @param int $fromUin |
||
| 48 | */ |
||
| 49 | public function setFromUin($fromUin) |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @return int |
||
| 56 | */ |
||
| 57 | public function getToUin() |
||
| 61 | |||
| 62 | /** |
||
| 63 | * @return int |
||
| 64 | */ |
||
| 65 | public function getFromUin() |
||
| 69 | } |
||
| 70 |