Conditions | 2 |
Paths | 2 |
Total Lines | 18 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | public function __construct(&$proxy) |
||
21 | { |
||
22 | $this->_proxy = $proxy; |
||
23 | |||
24 | $this->_applyOptions(); |
||
25 | |||
26 | /* |
||
27 | * generate 16 hex random id |
||
28 | */ |
||
29 | if (!$this->_id) { |
||
30 | $this->_id = bin2hex(openssl_random_pseudo_bytes(8)); |
||
31 | } |
||
32 | |||
33 | /* |
||
34 | * set dummy result |
||
35 | */ |
||
36 | $this->_result = new JobPendingException('not started yet'); |
||
37 | } |
||
38 | |||
86 |