SearchTweets   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 4
c 1
b 0
f 1
dl 0
loc 12
ccs 0
cts 9
cp 0
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getDefaultParameters() 0 3 1
A execute() 0 4 1
1
<?php
2
3
namespace Tequilarapido\Twit\Endpoints;
4
5
/**
6
 * Get twitter search tweets.
7
 *
8
 * @see https://developer.twitter.com/en/docs/tweets/search/api-reference/get-search-tweets.html
9
 *
10
 * Parameters sample
11
 *  [
12
 *      'q' => '@tequilarapido',
13
 *      'count' => 25,
14
 *      ...
15
 * ]
16
 */
17
class SearchTweets extends Endpoint
18
{
19
    protected function execute()
20
    {
21
        return $this->app->get(
22
            '/search/tweets', $this->getParameters()
23
        );
24
    }
25
26
    protected function getDefaultParameters()
27
    {
28
        return [
29
30
        ];
31
    }
32
}
33