Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
55 | 2 | public function fetchOne(string $orderBy = null, string $order = self::ORDER_BY_ASC): ? Variable |
|
56 | { |
||
57 | 2 | return $this->doFetchOne( |
|
58 | 2 | self::ENDPOINT, |
|
59 | $orderBy, |
||
60 | $order, |
||
61 | 2 | function ($response) { |
|
62 | 2 | return (new VariablesMapper())->map(new Collections\Variables(), $response); |
|
63 | 2 | } |
|
64 | ); |
||
65 | } |
||
66 | } |
||
67 |