Skip to content

Commit 0a091a4

Browse files
committed
Rearrange public methods
1 parent 62396ce commit 0a091a4

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

src/Client.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,20 @@ public function unsetAuth()
135135
$this->auth = null;
136136
}
137137

138+
/**
139+
* Creates a Connector instance that can be used to establish TCP connections to remote hosts.
140+
*
141+
* This return a new `Connector` instance which can then be used to establish
142+
* any number of TCP connections.
143+
*
144+
* @return Connector
145+
* @see Connector
146+
*/
147+
public function createConnector()
148+
{
149+
return new Connector($this);
150+
}
151+
138152
/**
139153
* Creates a SecureConnector instance that can be used to establish encrypted TLS connections to remote hosts.
140154
*
@@ -150,20 +164,6 @@ public function createSecureConnector()
150164
return new SecureConnector($this->createConnector(), $this->loop);
151165
}
152166

153-
/**
154-
* Creates a Connector instance that can be used to establish TCP connections to remote hosts.
155-
*
156-
* This return a new `Connector` instance which can then be used to establish
157-
* any number of TCP connections.
158-
*
159-
* @return Connector
160-
* @see Connector
161-
*/
162-
public function createConnector()
163-
{
164-
return new Connector($this);
165-
}
166-
167167
/**
168168
* Should not be called directly, use createConnector() instead.
169169
*

0 commit comments

Comments
 (0)