Completed
Push — master ( d83f32...d4821e )
by Rémi
04:29
created

UnlimitedApiRate::getLimit()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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