Test Failed
Push — master ( cf61d2...d4f0dd )
by Robin
02:18
created

OneSearchClient::index()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
crap 2
1
<?php
2
3
namespace Konsulting\JustGivingApiSdk\ResourceClients;
4
5
class OneSearchClient extends BaseClient
6
{
7
    protected $aliases = [
8
        'index' => 'OneSearchIndex',
9
    ];
10
11
    public function index($searchTerm, $resultByIndex = '', $limit = 10)
12
    {
13
        // TODO: implement other query parameters
14
        return $this->get("onesearch?q=" . $searchTerm . "&i=" . $resultByIndex . "&limit=" . $limit);
15
    }
16
}
17