Skip to content

Commit

Permalink
Merge branch 'master' of github.com:botman/driver-wechat
Browse files Browse the repository at this point in the history
  • Loading branch information
mpociot committed Aug 25, 2017
2 parents f835eb5 + 8a2bbd3 commit b478e25
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/Extensions/User.php
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<?php

namespace BotMan\Drivers\WeChat\Extensions;

use BotMan\BotMan\Interfaces\UserInterface;
use BotMan\BotMan\Users\User as BotManUser;

class User extends BotManUser implements UserInterface
{

/**
* Shows whether the user has followed the official account.
* 0: The user is not a follower, and you cannot obtain
* other information about this user.
*
* @return integer|null
* @return int|null
*/
public function getSubscribe()
{
Expand All @@ -21,9 +21,9 @@ public function getSubscribe()

/**
* The timestamp when the user follows the official
* account or the last time if the user has followed several times
* account or the last time if the user has followed several times.
*
* @return integer|null
* @return int|null
*/
public function getSubscribeTime()
{
Expand Down Expand Up @@ -71,9 +71,9 @@ public function getCountry()
}

/**
* 1: Male; 2: Female; 0: Not Set
* 1: Male; 2: Female; 0: Not Set.
*
* @return integer|null
* @return int|null
*/
public function getSex()
{
Expand All @@ -83,13 +83,12 @@ public function getSex()
/**
* Profile photo URL. The last number in the URL shows the size of the square image,
* which can be 0 (640*640), 46, 64, 96 and 132.
* This parameter is null if the user hasn't set a profile photo
* This parameter is null if the user hasn't set a profile photo.
*
* @return string|null
*/
public function getHeadImageUrl()
{
return $this->getInfo()['headimgurl'] ?? null;
}

}
}

0 comments on commit b478e25

Please sign in to comment.