@@ 33-42 (lines=10) @@ | ||
30 | * @param resource $clientHandle |
|
31 | * optional existing client handle |
|
32 | */ |
|
33 | public function __construct(Endpoint $endpoint, $clientHandle = null) |
|
34 | { |
|
35 | $this->endpoint = $endpoint; |
|
36 | $this->handle = $clientHandle; |
|
37 | $this->conntected = false; |
|
38 | ||
39 | if (! is_resource($clientHandle)) { |
|
40 | parent::__construct($endpoint); |
|
41 | } |
|
42 | } |
|
43 | ||
44 | /** |
|
45 | * Connect to remote endpoint |
@@ 21-30 (lines=10) @@ | ||
18 | * @param resource $clientHandle |
|
19 | * optional existing client handle |
|
20 | */ |
|
21 | public function __construct(Endpoint $endpoint, $clientHandle = null) |
|
22 | { |
|
23 | $this->endpoint = $endpoint; |
|
24 | $this->handle = $clientHandle; |
|
25 | $this->conntected = false; |
|
26 | ||
27 | if (! is_resource($clientHandle)) { |
|
28 | parent::__construct($endpoint); |
|
29 | } |
|
30 | } |
|
31 | ||
32 | /** |
|
33 | * Connect to remote endpoint |