Completed
Push — master ( 712c83...97ed41 )
by Rémi
04:22
created

UnlimitedApiRate::nextWindow()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Twitter\API\REST\Response;
4
5
class UnlimitedApiRate implements ApiRate
6
{
7
    /**
8
     * @return int
9
     */
10 3
    public function getLimit()
11
    {
12 3
        return -1;
13
    }
14
15
    /**
16
     * @return bool
17
     */
18 15
    public function canMakeAnotherCall()
19
    {
20 15
        return true;
21
    }
22
23
    /**
24
     * @return \DateTimeInterface
25
     */
26 3
    public function nextWindow()
27
    {
28 3
        return new \DateTimeImmutable('now', new \DateTimeZone('UTC'));
29
    }
30
}
31