Issues (16)

src/Traits/SearchTrait.php (1 issue)

Labels
Severity
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
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