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 ( a60fd1...b17eb0 )
by Alexandru
02:01 queued 15s
created

Workspaces::all()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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
namespace Bitbucket\API;
12
13
use Psr\Http\Message\ResponseInterface;
14
15
/**
16
 * @author  Matt S.    <[email protected]>
17
 */
18
class Workspaces extends Api
19
{
20
    /**
21
     * Get a list of workspaces to which the caller has access.
22
     *
23
     * @access public
24
     * @return ResponseInterface
25
     *
26
     * @throws \InvalidArgumentException
27
     */
28
    public function all()
29
    {
30
        return $this->getClient()->setApiVersion('2.0')->get('/workspaces');
31
    }
32
}
33