Fetch::fetch()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
dl 0
loc 5
c 1
b 0
f 0
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Digikraaft\Paystack\ApiOperations;
4
5
trait Fetch
6
{
7
    /**
8
     * @param string $id Resource id
9
     *
10
     * @return array|object
11
     */
12
    public static function fetch(string $id)
13
    {
14
        $url = static::resourceUrl($id);
15
16
        return static::staticRequest('GET', $url);
17
    }
18
}
19