| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | public function __invoke($alias, ProtocolInterface $protocol, $flags, callable $success = null, callable $failure = null, callable $cancel = null, $timeout = 0.0) |
||
| 40 | { |
||
| 41 | $callback = $this->callback; |
||
| 42 | |||
| 43 | return $callback([ |
||
| 44 | 'alias' => $alias, |
||
| 45 | 'protocol' => $protocol, |
||
| 46 | 'flags' => $flags, |
||
| 47 | 'success' => $success, |
||
| 48 | 'failure' => $failure, |
||
| 49 | 'cancel' => $cancel, |
||
| 50 | 'timeout' => $timeout |
||
| 51 | ]); |
||
| 52 | } |
||
| 53 | } |
||
| 54 |