BalanceHistory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 5
c 1
b 0
f 0
dl 0
loc 19
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A ledger() 0 6 1
1
<?php
2
3
namespace Digikraaft\Paystack;
4
5
class BalanceHistory extends ApiResource
6
{
7
    const OBJECT_NAME = 'balance';
8
9
    /**
10
     * @param array $params
11
     *
12
     * @throws Exceptions\InvalidArgumentException
13
     *
14
     * @return array|object
15
     *
16
     * @link https://developers.paystack.co/reference#fetch-balance-history
17
     */
18
    public static function ledger($params)
19
    {
20
        self::validateParams($params, true);
21
        $url = static::classUrl().'/ledger';
22
23
        return static::staticRequest('get', $url);
24
    }
25
}
26