Completed
Push — master ( 354bbd...8413c0 )
by John
03:53
created

NoThrottle::throttle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
namespace LunixREST\Throttle;
3
4
use LunixREST\Request\Request;
5
6
class NoThrottle implements Throttle {
7
    /**
8
     * Never throttle
9
     * @param \LunixREST\Request\Request $request
10
     * @return bool
11
     */
12
    public function shouldThrottle(Request $request): bool {
13
        return false;
14
    }
15
16
    /**
17
     * Log that a request took place
18
     * @param \LunixREST\Request\Request $request
19
     */
20
    public function logRequest(Request $request) {
21
        //Do nothing
22
    }
23
}
24