Completed
Push — master ( 784303...e88874 )
by Pieter
03:18
created

Place   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 1
dl 0
loc 19
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A excludeHashTags() 0 6 1
1
<?php declare(strict_types=1);
2
3
namespace PeeHaa\AsyncTwitter\Api\Request\Trend;
4
5
use PeeHaa\AsyncTwitter\Api\Request\BaseRequest;
6
7
/**
8
 * @link https://dev.twitter.com/rest/reference/get/trends/place
9
 */
10
class Place extends BaseRequest
11
{
12
    const METHOD   = 'GET';
13
    const ENDPOINT = '/trends/place.json';
14
15 3
    public function __construct(int $id)
16
    {
17 3
        parent::__construct(self::METHOD, self::ENDPOINT);
18
19 3
        $this->parameters['id'] = (string) $id;
20
    }
21
22 1
    public function excludeHashTags(): Place
23
    {
24 1
        $this->parameters['exclude'] = 'hashtags';
25
26 1
        return $this;
27
    }
28
}
29