@@ -31,7 +31,7 @@ final class Builder
3131{
3232 /**
3333 * Contact points, defaults to "127.0.0.1"
34- * @var contactPoints
34+ * @var string
3535 */
3636 private $ contactPoints ;
3737
@@ -91,7 +91,7 @@ final class Builder
9191
9292 /**
9393 * sslOptions
94- * @var Cassandra\ SSLOptions
94+ * @var SSLOptions
9595 */
9696 private $ sslOptions ;
9797
@@ -133,7 +133,7 @@ public function __construct()
133133 /**
134134 * Returns a Cluster Instance
135135 *
136- * @return Cassandra\Cluster Cluster instance
136+ * @return \ Cassandra\Cluster Cluster instance
137137 */
138138 public function build ()
139139 {
@@ -182,7 +182,7 @@ public function build()
182182 /**
183183 * Configures default consistency for all requests
184184 * @param int $consistency A consistency level, must be one of Cassandra::CONSISTENCY_* values
185- * @return Cassandra\Cluster\Builder self
185+ * @return self
186186 */
187187 public function withDefaultConsistency ($ consistency )
188188 {
@@ -213,6 +213,8 @@ public function withDefaultConsistency($consistency)
213213 * Configures default page size for all results.
214214 * Set to -1 to disable paging altogether.
215215 * @param int $pageSize default page size
216+ *
217+ * @return self
216218 */
217219 public function withDefaultPageSize ($ pageSize )
218220 {
@@ -224,12 +226,16 @@ public function withDefaultPageSize($pageSize)
224226 }
225227
226228 $ this ->defaultPageSize = $ pageSize ;
229+
230+ return $ this ;
227231 }
228232
229233 /**
230234 * Configures default timeout for future resolution in blocking operations
231235 * Set to null to disable (default)
232236 * @param int|null $timeout timeout value
237+ *
238+ * @return self
233239 */
234240 public function withDefaultTimeout ($ timeout )
235241 {
@@ -241,6 +247,8 @@ public function withDefaultTimeout($timeout)
241247 }
242248
243249 $ this ->defaultTimeout = $ timeout ;
250+
251+ return $ this ;
244252 }
245253
246254 /**
@@ -249,7 +257,7 @@ public function withDefaultTimeout($timeout)
249257 *
250258 * @param string $host an ip address string
251259 * @param string ... additional addresses
252- * @return Cassandra\Cluster\Builder self
260+ * @return self
253261 */
254262 public function withContactPoints ($ host )
255263 {
@@ -260,7 +268,7 @@ public function withContactPoints($host)
260268 /**
261269 * Configures this cluster to use a round robin load balancing policy.
262270 *
263- * @return Cassandra\Cluster\Builder self
271+ * @return self
264272 */
265273 public function withRoundRobinLoadBalancingPolicy ()
266274 {
@@ -275,7 +283,7 @@ public function withRoundRobinLoadBalancingPolicy()
275283 * @param integer $hostPerRemoteDatacenter Maximum number of hosts to try in remote datacenters
276284 * @param boolean $useRemoteDatacenterForLocalConsistencies Allow using hosts from remote datacenters to execute statements with local consistencies
277285 *
278- * @return Cassandra\Cluster\Builder self
286+ * @return self
279287 */
280288 public function withDatacenterAwareRoundRobinLoadBalancingPolicy ($ localDatacenter , $ hostPerRemoteDatacenter , $ useRemoteDatacenterForLocalConsistencies )
281289 {
@@ -299,7 +307,7 @@ public function withDatacenterAwareRoundRobinLoadBalancingPolicy($localDatacente
299307 *
300308 * @param boolean $enabled Whether to enable token aware routing (default: `true`)
301309 *
302- * @return Cassandra\Cluster\Builder self
310+ * @return self
303311 */
304312 public function withTokenAwareRouting ($ enabled = true )
305313 {
@@ -313,7 +321,7 @@ public function withTokenAwareRouting($enabled = true)
313321 * @param string $username Username
314322 * @param string $password Password
315323 *
316- * @return Cassandra\Cluster\Builder self
324+ * @return self
317325 */
318326 public function withCredentials ($ username , $ password )
319327 {
@@ -327,7 +335,7 @@ public function withCredentials($username, $password)
327335 *
328336 * @param float $timeout Timeout value in seconds, can be fractional
329337 *
330- * @return Cassandra\Cluster\Builder self
338+ * @return self
331339 */
332340 public function withConnectTimeout ($ timeout )
333341 {
@@ -340,7 +348,7 @@ public function withConnectTimeout($timeout)
340348 *
341349 * @param float $timeout Timeout value in seconds, can be fractional
342350 *
343- * @return Cassandra\Cluster\Builder self
351+ * @return self
344352 */
345353 public function withRequestTimeout ($ timeout )
346354 {
@@ -350,7 +358,10 @@ public function withRequestTimeout($timeout)
350358
351359 /**
352360 * Set up ssl context
353- * @param SSLOptions $context a preconfigured ssl context
361+ *
362+ * @param SSLOptions $options a preconfigured ssl context
363+ *
364+ * @return self
354365 */
355366 public function withSSL (SSLOptions $ options )
356367 {
0 commit comments