@@ -18,7 +18,7 @@ |
||
18 | 18 | /** |
19 | 19 | * AbstractSuite constructor. |
20 | 20 | * |
21 | - * @param \EntWeChat\Suite\AccessToken $accessToken |
|
21 | + * @param AccessToken $accessToken |
|
22 | 22 | * @param \Symfony\Component\HttpFoundation\Request $request |
23 | 23 | */ |
24 | 24 | public function __construct(AccessToken $accessToken, Request $request) |
@@ -42,7 +42,7 @@ |
||
42 | 42 | /** |
43 | 43 | * Authorization Constructor. |
44 | 44 | * |
45 | - * @param \EntWeChat\Suite\Api\BaseApi $api |
|
45 | + * @param BaseApi $api |
|
46 | 46 | * @param string $suiteId |
47 | 47 | * @param \Doctrine\Common\Cache\Cache $cache |
48 | 48 | */ |
@@ -28,7 +28,7 @@ |
||
28 | 28 | * AuthorizerAccessToken constructor. |
29 | 29 | * |
30 | 30 | * @param string $corpId |
31 | - * @param \EntWeChat\Suite\Authorization $authorization |
|
31 | + * @param Authorization $authorization |
|
32 | 32 | */ |
33 | 33 | public function __construct($corpId, Authorization $authorization) |
34 | 34 | { |
@@ -63,10 +63,10 @@ |
||
63 | 63 | protected function refreshToken() |
64 | 64 | { |
65 | 65 | $token = $this->authorization->getApi() |
66 | - ->getAuthorizerToken( |
|
67 | - $this->authorization->getAuthorizerCorpId(), |
|
68 | - $this->authorization->getAuthorizerPermanentCode() |
|
69 | - ); |
|
66 | + ->getAuthorizerToken( |
|
67 | + $this->authorization->getAuthorizerCorpId(), |
|
68 | + $this->authorization->getAuthorizerPermanentCode() |
|
69 | + ); |
|
70 | 70 | |
71 | 71 | $this->authorization->setAuthorizerAccessToken($token['access_token'], $token['expires_in'] - 1500); |
72 | 72 |
@@ -16,7 +16,7 @@ |
||
16 | 16 | /** |
17 | 17 | * Constructor. |
18 | 18 | * |
19 | - * @param \EntWeChat\Suite\Ticket $ticket |
|
19 | + * @param Ticket $ticket |
|
20 | 20 | */ |
21 | 21 | public function __construct(Ticket $ticket) |
22 | 22 | { |
@@ -23,7 +23,6 @@ |
||
23 | 23 | /** |
24 | 24 | * Create an instance of the EntWeChat for the given authorizer. |
25 | 25 | * |
26 | - * @param string $corpId Authorizer CorpId |
|
27 | 26 | * @param string $permanentCode Authorizer permanent-code |
28 | 27 | * |
29 | 28 | * @return \EntWeChat\Foundation\Application |
@@ -31,8 +31,8 @@ |
||
31 | 31 | public function createAuthorizerApplication($authorizerCorpId, $permanentCode) |
32 | 32 | { |
33 | 33 | $this->fetch('authorization') |
34 | - ->setAuthorizerCorpId($authorizerCorpId) |
|
35 | - ->setAuthorizerPermanentCode($permanentCode); |
|
34 | + ->setAuthorizerCorpId($authorizerCorpId) |
|
35 | + ->setAuthorizerPermanentCode($permanentCode); |
|
36 | 36 | |
37 | 37 | $application = $this->fetch('app'); |
38 | 38 | $application['access_token'] = $this->fetch('authorizer_access_token'); |
@@ -121,7 +121,7 @@ |
||
121 | 121 | * @param string $attribute |
122 | 122 | * @param mixed $default |
123 | 123 | * |
124 | - * @return mixed |
|
124 | + * @return string |
|
125 | 125 | */ |
126 | 126 | public function get($attribute, $default = null) |
127 | 127 | { |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | * @param int|null $order |
23 | 23 | * @param int|null $partyId |
24 | 24 | * |
25 | - * @return int |
|
25 | + * @return \YEntWeChat\Support\Collection |
|
26 | 26 | */ |
27 | 27 | public function create($name, $parentId, $order = null, $partyId = null) |
28 | 28 | { |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | /** |
40 | 40 | * List all Departments. |
41 | 41 | * |
42 | - * @return array |
|
42 | + * @return \YEntWeChat\Support\Collection |
|
43 | 43 | */ |
44 | 44 | public function lists($partyId = null) |
45 | 45 | { |
@@ -54,9 +54,8 @@ discard block |
||
54 | 54 | * Update a Department. |
55 | 55 | * |
56 | 56 | * @param int $partyId |
57 | - * @param array $name |
|
58 | 57 | * |
59 | - * @return bool |
|
58 | + * @return \YEntWeChat\Support\Collection |
|
60 | 59 | */ |
61 | 60 | public function update($partyId, array $partyInfo = []) |
62 | 61 | { |
@@ -68,9 +67,8 @@ discard block |
||
68 | 67 | /** |
69 | 68 | * Delete Department. |
70 | 69 | * |
71 | - * @param int $groupId |
|
72 | 70 | * |
73 | - * @return bool |
|
71 | + * @return \YEntWeChat\Support\Collection |
|
74 | 72 | */ |
75 | 73 | public function delete($partyId) |
76 | 74 | { |
@@ -21,9 +21,9 @@ discard block |
||
21 | 21 | * Create tag. |
22 | 22 | * |
23 | 23 | * @param string $name |
24 | - * @param null $tagI |
|
24 | + * @param null $tagId |
|
25 | 25 | * |
26 | - * @return int |
|
26 | + * @return \YEntWeChat\Support\Collection |
|
27 | 27 | */ |
28 | 28 | public function create($name, $tagId = null) |
29 | 29 | { |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | /** |
39 | 39 | * List all tags. |
40 | 40 | * |
41 | - * @return array |
|
41 | + * @return \YEntWeChat\Support\Collection |
|
42 | 42 | */ |
43 | 43 | public function lists() |
44 | 44 | { |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | * @param int $tagId |
52 | 52 | * @param string $name |
53 | 53 | * |
54 | - * @return bool |
|
54 | + * @return \YEntWeChat\Support\Collection |
|
55 | 55 | */ |
56 | 56 | public function update($tagId, $name) |
57 | 57 | { |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | * |
69 | 69 | * @param int $tagId |
70 | 70 | * |
71 | - * @return bool |
|
71 | + * @return \YEntWeChat\Support\Collection |
|
72 | 72 | */ |
73 | 73 | public function delete($tagId) |
74 | 74 | { |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | * |
85 | 85 | * @param string $tagId |
86 | 86 | * |
87 | - * @return int |
|
87 | + * @return \YEntWeChat\Support\Collection |
|
88 | 88 | */ |
89 | 89 | public function usersOfTag($tagId) |
90 | 90 | { |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | * @param array $userIds |
101 | 101 | * @param array $partyIds |
102 | 102 | * |
103 | - * @return bool |
|
103 | + * @return \YEntWeChat\Support\Collection |
|
104 | 104 | */ |
105 | 105 | public function batchTagUsers($tagId, array $userIds = [], array $partyIds = []) |
106 | 106 | { |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | * @param array $userIds |
121 | 121 | * @param array $partyIds |
122 | 122 | * |
123 | - * @return bool |
|
123 | + * @return \YEntWeChat\Support\Collection |
|
124 | 124 | */ |
125 | 125 | public function batchUntagUsers($tagId, array $userIds = [], array $partyIds = []) |
126 | 126 | { |
@@ -21,7 +21,7 @@ |
||
21 | 21 | */ |
22 | 22 | public function register(Container $pimple) |
23 | 23 | { |
24 | - $pimple['card'] = function ($pimple) { |
|
24 | + $pimple['card'] = function($pimple) { |
|
25 | 25 | $card = new Card($pimple['access_token']); |
26 | 26 | $card->setCache($pimple['cache']); |
27 | 27 |