Fetch::fetch()   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 1
1
<?php
2
3
namespace Digikraaft\Mono\ApiOperations;
4
5
trait Fetch
6
{
7
    use Request;
8
    /**
9
     * @param string $id Resource id
10
     *
11
     * @return array|object
12
     */
13
    public static function fetch(string $id)
14
    {
15
        $url = static::resourceUrl($id);
16
17
        return static::staticRequest('GET', $url);
18
    }
19
}
20