1 | <?php |
||
13 | class Manager |
||
14 | { |
||
15 | /** @var Server */ |
||
16 | protected $server; |
||
17 | |||
18 | /** @var CommandFactory */ |
||
19 | protected $commandFactory; |
||
20 | |||
21 | /** @var JobFactory */ |
||
22 | protected $jobFactory; |
||
23 | |||
24 | /** |
||
25 | * @param Server $server |
||
26 | */ |
||
27 | 6 | public function __construct(Server $server) |
|
33 | |||
34 | /** |
||
35 | * @return array |
||
36 | * @throws Exception\InvalidArgumentException |
||
37 | */ |
||
38 | 1 | public function stats() |
|
45 | |||
46 | /** |
||
47 | * @param int $jobId |
||
48 | * @return Job\Job|null |
||
49 | * @throws Exception\InvalidArgumentException |
||
50 | */ |
||
51 | 2 | public function peek($jobId) |
|
58 | |||
59 | /** |
||
60 | * @return Tube[] |
||
61 | * @throws Exception\InvalidArgumentException |
||
62 | */ |
||
63 | 1 | public function tubes() |
|
77 | |||
78 | /** |
||
79 | * @return string |
||
80 | */ |
||
81 | 1 | public function __toString() |
|
85 | } |
||
86 |