1 | <?php |
||
14 | class DurationRule implements Rule |
||
15 | { |
||
16 | private $maxDuration; |
||
17 | |||
18 | /** |
||
19 | * @param int $maxDuration The maximum duration a http call is allowed to take (time to first byte) |
||
20 | */ |
||
21 | public function init($maxDuration = 1000) |
||
25 | |||
26 | public function validate(ResponseInterface $response) |
||
42 | } |
||
43 |