Notification Setup Error

We have detected an error in your notification set-up (Event-ID dab39dc24f564ec7bd4628d1305fd03c). Currently, we cannot inform you about inspection progress. Please check that the user 557058:bca11929-8c2d-43f2-8a82-c5416880d395 still has access to your repository or update the API account.

Completed
Push — develop ( a07701...832ee1 )
by
unknown
333:42 queued 319:28
created

Account::events()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php
2
3
/**
4
 * This file is part of the bitbucket-api package.
5
 *
6
 * (c) Alexandru G. <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Bitbucket\API\Users;
13
14
use Bitbucket\API\Api;
15
use Buzz\Message\MessageInterface;
16
17
/**
18
 * This resource returns a user structure and the repositories array associated
19
 * with an existing account.
20
 *
21
 * @author  Alexandru G.    <[email protected]>
22
 */
23
class Account extends Api
24
{
25
    /**
26
     * Get the account profile
27
     *
28
     * @access public
29
     * @param  string           $account The name of an individual or team account, or validated email address.
30
     * @return MessageInterface
31
     */
32 1
    public function profile($account)
33
    {
34 1
        return $this->getClient()->setApiVersion('2.0')->get(
35 1
            sprintf('users/%s', $account)
36
        );
37
    }
38
39
    /**
40
     * Get the followers
41
     *
42
     * Gets a count and the list of accounts following an account.
43
     *
44
     * @access public
45
     * @param  string           $account The name of an individual or team account, or validated email address.
46
     * @return MessageInterface
47
     */
48 1
    public function followers($account)
49
    {
50 1
        return $this->getClient()->setApiVersion('2.0')->get(
51 1
            sprintf('users/%s/followers', $account)
52
        );
53
    }
54
}
55