Completed
Push — master ( 687eed...784303 )
by Pieter
03:37
created

Id   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php declare(strict_types=1);
2
3
namespace PeeHaa\AsyncTwitter\Api\Request\SavedSearch\Show;
4
5
use PeeHaa\AsyncTwitter\Api\Request\BaseRequest;
6
7
/**
8
 * @link https://dev.twitter.com/rest/reference/get/saved_searches/show/id
9
 */
10
class Id extends BaseRequest
11
{
12
    const METHOD   = 'GET';
13
    const ENDPOINT = '/saved_searches/show/%s.json';
14
15 1
    public function __construct(int $id)
16
    {
17 1
        parent::__construct(self::METHOD, sprintf(self::ENDPOINT, $id));
18
    }
19
}
20