1 | <?php |
||
8 | final class Manager |
||
9 | { |
||
10 | /** |
||
11 | * @var Connector |
||
12 | */ |
||
13 | private $connector; |
||
14 | |||
15 | /** |
||
16 | * @var Builder |
||
17 | */ |
||
18 | private $builder; |
||
19 | |||
20 | /** |
||
21 | * @param Connector $connector |
||
22 | * @param Builder $builder |
||
23 | */ |
||
24 | public function __construct(Connector $connector, Builder $builder) |
||
29 | |||
30 | /** |
||
31 | * @param string $method |
||
32 | * @param array $parameters |
||
33 | * |
||
34 | * @return mixed |
||
35 | */ |
||
36 | public function __call($method, array $parameters = []) |
||
45 | |||
46 | /** |
||
47 | * @return PromiseInterface |
||
48 | */ |
||
49 | public function first() |
||
61 | |||
62 | /** |
||
63 | * @return PromiseInterface |
||
64 | */ |
||
65 | public function get() |
||
77 | |||
78 | /** |
||
79 | * @return PromiseInterface |
||
80 | */ |
||
81 | public function run() |
||
85 | } |
||
86 |