| 1 | <?php |
||
| 8 | class ExecutionTimeLimited implements Waiter, StatefulWaiter |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var Waiter |
||
| 12 | */ |
||
| 13 | private $waiter; |
||
| 14 | |||
| 15 | private $maxExecutionTime; |
||
| 16 | |||
| 17 | private $timeEllapsed; |
||
| 18 | |||
| 19 | public function __construct(Waiter $waiter, $maxExecutionTime) |
||
| 25 | |||
| 26 | /** |
||
| 27 | * {@inheritdoc} |
||
| 28 | */ |
||
| 29 | public function wait($seconds = 1) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * {@inheritdoc} |
||
| 40 | */ |
||
| 41 | public function resetState() |
||
| 45 | } |
||
| 46 |