Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
22 | 30 | public function __construct( |
|
23 | EndpointInterface $endpoint, |
||
24 | ApiHandlerInterface $handler, |
||
25 | ApiAuthorizationInterface $authorization, |
||
26 | ?RateLimitInterface $rateLimit = null |
||
27 | ) { |
||
28 | 30 | $this->endpoint = $endpoint; |
|
29 | 30 | $this->handler = $handler; |
|
30 | 30 | $this->authorization = $authorization; |
|
31 | 30 | $this->rateLimit = $rateLimit ?: new NoRateLimit(); |
|
32 | 30 | } |
|
33 | |||
54 |