| 1 | <?php |
||
| 10 | class Scheduler |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var Client |
||
| 14 | */ |
||
| 15 | private $client; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param Client $client |
||
| 19 | */ |
||
| 20 | public function __construct(Client $client) |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param array $params |
||
| 27 | * @return PromiseInterface |
||
| 28 | */ |
||
| 29 | public function takeover(array $params = []): PromiseInterface |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return Server |
||
| 38 | */ |
||
| 39 | public function server(): Server |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return PromiseInterface |
||
| 46 | */ |
||
| 47 | public function jobs(): PromiseInterface |
||
| 53 | } |
||
| 54 |