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
Pull Request — develop ( #63 )
by
unknown
254:59 queued 239:59
created

Events   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 29
ccs 4
cts 4
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A all() 0 7 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\Repositories;
13
14
use Bitbucket\API;
15
use Buzz\Message\MessageInterface;
16
17
/**
18
 * You can use events to track events that occur on public repositories.
19
 * NOTE: Tracking events from private repositories are not supported for
20
 * the moment by the API.
21
 *
22
 * @author  Alexandru G.    <[email protected]>
23
 */
24
class Events extends API\Api
25
{
26
    /**
27
     * Get a list of events
28
     *
29
     * Available `$options`:
30
     *
31
     * <example>
32
     * 'start'  (int) = An integer specifying the offset to start with. By default, this call starts with 0.
33
     * 'limit'  (int) = An integer specifying the number of events to return. (0 - 50 range)
34
     * 'type'   (string) = The event type to return.
35
     * </example>
36
     *
37
     * @access public
38
     * @param  string           $account The team or individual account owning the repository.
39
     * @param  string           $repo    The repository identifier.
40
     * @param  array            $options The rest of available options
41
     * @return MessageInterface
42
     *
43
     * @see https://confluence.atlassian.com/display/BITBUCKET/events+Resources#eventsResources-GETalistofevents
44
     */
45 2
    public function all($account, $repo, array $options = array())
46
    {
47 2
        return $this->requestGet(
48 2
            sprintf('repositories/%s/%s/events', $account, $repo),
49 2
            $options
50
        );
51
    }
52
}
53