1 | <?php |
||
10 | class Execution |
||
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 string $id |
||
27 | * @return PromiseInterface |
||
28 | */ |
||
29 | public function info(string $id): PromiseInterface |
||
35 | |||
36 | /** |
||
37 | * @param string $id |
||
38 | * @return PromiseInterface |
||
39 | */ |
||
40 | public function delete(string $id): PromiseInterface |
||
46 | |||
47 | /** |
||
48 | * @param array $params |
||
49 | * @return PromiseInterface |
||
50 | */ |
||
51 | public function bulkDelete(array $params = []) |
||
57 | |||
58 | /** |
||
59 | * @return PromiseInterface |
||
60 | */ |
||
61 | public function enable(): PromiseInterface |
||
67 | |||
68 | /** |
||
69 | * @return PromiseInterface |
||
70 | */ |
||
71 | public function disable(): PromiseInterface |
||
77 | } |
||
78 |