SearchTrait::getSearchMembers()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
ccs 1
cts 1
cp 1
crap 1
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace Stevenmaguire\Services\Trello\Traits;
4
5
trait SearchTrait
6
{
7
    /**
8
     * Retrieves currently configured http broker.
9
     *
10
     * @return Stevenmaguire\Services\Trello\Http
0 ignored issues
show
Bug introduced by
The type Stevenmaguire\Services\T...re\Services\Trello\Http was not found. Did you mean Stevenmaguire\Services\Trello\Http? If so, make sure to prefix the type with \.
Loading history...
11
     * @codeCoverageIgnore
12
     */
13
    abstract public function getHttp();
14
15
    /**
16
     * Retrieves http response from Trello api for search query.
17
     *
18
     * @param  array $attributes
19
     *
20 2
     * @return object
21
     */
22 2
    public function getSearch($attributes = [])
23
    {
24
        return $this->getHttp()->get('search', $attributes);
25
    }
26
27
    /**
28
     * Retrieves http response from Trello api for member search query.
29
     *
30
     * @param  array $attributes
31
     *
32 2
     * @return object
33
     */
34 2
    public function getSearchMembers($attributes = [])
35
    {
36
        return $this->getHttp()->get('search/members', $attributes);
37 2
    }
38
}
39