| Total Complexity | 7 |
| Total Lines | 75 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | class Connector |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @var Pool |
||
| 22 | */ |
||
| 23 | private $pool = null; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var Closure |
||
| 27 | */ |
||
| 28 | private $dialer = null; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var string |
||
| 32 | */ |
||
| 33 | private $identify = null; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Connector constructor. |
||
| 37 | * @param Pool $pool |
||
| 38 | * @param Closure $dialer |
||
| 39 | * @param string $identify |
||
| 40 | */ |
||
| 41 | public function __construct(Pool $pool, Closure $dialer, string $identify) |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | */ |
||
| 50 | public function cleanup() : void |
||
| 54 | } |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @return string |
||
| 58 | */ |
||
| 59 | public function identify() : string |
||
| 62 | } |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @return Promised|Poolable |
||
| 66 | */ |
||
| 67 | public function created() : Promised |
||
| 95 |