Wallet::balance()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
c 0
b 0
f 0
dl 0
loc 5
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
4
    namespace Digikraaft\Mono;
5
6
    class Wallet extends ApiResource
7
    {
8
        /**
9
         * @return array|object
10
         * @throws Exceptions\InvalidArgumentException
11
         * @throws Exceptions\IsNullException
12
         * @link https://docs.mono.co/reference#fetch-balance
13
         */
14
        public static function balance()
15
        {
16
            $url = "users/stats/wallet";
17
18
            return static::staticRequest('GET', $url);
19
        }
20
    }
21