RateLimit   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A get() 0 4 1
1
<?php
2
namespace FlexyProject\GitHub\Receiver\Miscellaneous;
3
4
/**
5
 * The Rate Limit API class lets you check your current rate limit status at any time.
6
 *
7
 * @link    https://developer.github.com/v3/rate_limit/
8
 * @package FlexyProject\GitHub\Receiver\Miscellaneous
9
 */
10
class RateLimit extends AbstractMiscellaneous
11
{
12
13
    /**
14
     * Check your current rate limit status at any time using the Rate Limit API described below.
15
     *
16
     * @link https://developer.github.com/v3/rate_limit/#rate-limit
17
     * @return array
18
     */
19
    public function get(): array
20
    {
21
        return $this->getApi()->request('/rate_limit');
22
    }
23
}