Fetch   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A fetch() 0 5 1
1
<?php
2
3
namespace Digikraaft\Flutterwave\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