Passed
Pull Request — master (#3)
by Gombos
01:57
created

Accounts::list()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Glorand\Drip\Api;
4
5
use Glorand\Drip\Api\Response\ApiResponse;
6
7
class Accounts extends Api
8
{
9
    /**
10
     * List all accounts.
11
     *
12
     * @return Response\ApiResponse
13
     */
14
    public function list(): ApiResponse
15
    {
16
        return $this->sendGet('accounts');
17
    }
18
19
    /**
20
     * Fetch an account.
21
     *
22
     * @param string $accountId
23
     *
24
     * @return ApiResponse
25
     */
26
    public function show(string $accountId): ApiResponse
27
    {
28
        return $this->sendGet("accounts/$accountId");
29
    }
30
}
31