1212namespace Bitbucket \API \Users ;
1313
1414use Bitbucket \API \Api ;
15+ use Buzz \Message \MessageInterface ;
1516
1617/**
1718 * An invitation is a request sent to an external email address to participate
@@ -25,8 +26,8 @@ class Invitations extends Api
2526 * Get a list of pending invitations
2627 *
2728 * @access public
28- * @param string $account The name of an individual or team account.
29- * @return mixed
29+ * @param string $account The name of an individual or team account.
30+ * @return MessageInterface
3031 */
3132 public function all ($ account )
3233 {
@@ -41,9 +42,9 @@ public function all($account)
4142 * Gets any pending invitations on a team or individual account for a particular email address.
4243 *
4344 * @access public
44- * @param string $account The name of an individual or team account.
45- * @param string $email The email address to get.
46- * @return mixed
45+ * @param string $account The name of an individual or team account.
46+ * @param string $email The email address to get.
47+ * @return MessageInterface
4748 */
4849 public function email ($ account , $ email )
4950 {
@@ -56,16 +57,16 @@ public function email($account, $email)
5657 * Get a pending invitation for group membership
5758 *
5859 * @access public
59- * @param string $account The name of an individual or team account.
60- * @param string $group_owner The name of an individual or team account that owns the group.
61- * @param string $group_slug An identifier for the group.
62- * @param string $email Name of the email address
63- * @return mixed
60+ * @param string $account The name of an individual or team account.
61+ * @param string $groupOwner The name of an individual or team account that owns the group.
62+ * @param string $groupSlug An identifier for the group.
63+ * @param string $email Name of the email address
64+ * @return MessageInterface
6465 */
65- public function group ($ account , $ group_owner , $ group_slug , $ email )
66+ public function group ($ account , $ groupOwner , $ groupSlug , $ email )
6667 {
6768 return $ this ->requestGet (
68- sprintf ('users/%s/invitations/%s/%s/%s ' , $ account , $ email , $ group_owner , $ group_slug )
69+ sprintf ('users/%s/invitations/%s/%s/%s ' , $ account , $ email , $ groupOwner , $ groupSlug )
6970 );
7071 }
7172
@@ -75,16 +76,16 @@ public function group($account, $group_owner, $group_slug, $email)
7576 * An invitation is a request sent to an external email address to participate one or more of an account's groups.
7677 *
7778 * @access public
78- * @param string $account The name of an individual or team account.
79- * @param string $group_owner The name of an individual or team account that owns the group.
80- * @param string $group_slug An identifier for the group.
81- * @param string $email Name of the email address
82- * @return mixed
79+ * @param string $account The name of an individual or team account.
80+ * @param string $groupOwner The name of an individual or team account that owns the group.
81+ * @param string $groupSlug An identifier for the group.
82+ * @param string $email Name of the email address
83+ * @return MessageInterface
8384 */
84- public function create ($ account , $ group_owner , $ group_slug , $ email )
85+ public function create ($ account , $ groupOwner , $ groupSlug , $ email )
8586 {
8687 return $ this ->requestPut (
87- sprintf ('users/%s/invitations/%s/%s/%s ' , $ account , $ email , $ group_owner , $ group_slug )
88+ sprintf ('users/%s/invitations/%s/%s/%s ' , $ account , $ email , $ groupOwner , $ groupSlug )
8889 );
8990 }
9091
@@ -94,9 +95,9 @@ public function create($account, $group_owner, $group_slug, $email)
9495 * Deletes any pending invitations on a team or individual account for a particular email address.
9596 *
9697 * @access public
97- * @param string $account The name of an individual or team account.
98- * @param string $email Name of the email address to delete.
99- * @return mixed
98+ * @param string $account The name of an individual or team account.
99+ * @param string $email Name of the email address to delete.
100+ * @return MessageInterface
100101 */
101102 public function deleteByEmail ($ account , $ email )
102103 {
@@ -111,16 +112,16 @@ public function deleteByEmail($account, $email)
111112 * Deletes a pending invitation for a particular email on account's group.
112113 *
113114 * @access public
114- * @param string $account The name of an individual or team account.
115- * @param string $group_owner The name of an individual or team account that owns the group.
116- * @param string $group_slug An identifier for the group.
117- * @param string $email Name of the email address to delete.
118- * @return mixed
115+ * @param string $account The name of an individual or team account.
116+ * @param string $groupOwner The name of an individual or team account that owns the group.
117+ * @param string $groupSlug An identifier for the group.
118+ * @param string $email Name of the email address to delete.
119+ * @return MessageInterface
119120 */
120- public function deleteByGroup ($ account , $ group_owner , $ group_slug , $ email )
121+ public function deleteByGroup ($ account , $ groupOwner , $ groupSlug , $ email )
121122 {
122123 return $ this ->requestDelete (
123- sprintf ('users/%s/invitations/%s/%s/%s ' , $ account , $ email , $ group_owner , $ group_slug )
124+ sprintf ('users/%s/invitations/%s/%s/%s ' , $ account , $ email , $ groupOwner , $ groupSlug )
124125 );
125126 }
126127}
0 commit comments