Skip to content

Commit d923963

Browse files
authored
fix bug in PHPDoc return type $this (#183)
2 parents 78d94f6 + f0a3252 commit d923963

File tree

1 file changed

+42
-42
lines changed

1 file changed

+42
-42
lines changed

src/SphinxQL.php

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ public function getQueuePrev()
349349
*
350350
* @param SphinxQL $query The object to set as previous
351351
*
352-
* @return $this
352+
* @return self
353353
*/
354354
public function setQueuePrev($query)
355355
{
@@ -411,7 +411,7 @@ public function transactionRollback()
411411
/**
412412
* Runs the compile function
413413
*
414-
* @return $this
414+
* @return self
415415
* @throws ConnectionException
416416
* @throws DatabaseException
417417
* @throws SphinxQLException
@@ -441,7 +441,7 @@ public function compile()
441441
}
442442

443443
/**
444-
* @return $this
444+
* @return self
445445
*/
446446
public function compileQuery()
447447
{
@@ -569,7 +569,7 @@ public function compileFilterCondition($filter)
569569
/**
570570
* Compiles the statements for SELECT
571571
*
572-
* @return $this
572+
* @return self
573573
* @throws ConnectionException
574574
* @throws DatabaseException
575575
* @throws SphinxQLException
@@ -713,7 +713,7 @@ function (&$val, $key) {
713713
/**
714714
* Compiles the statements for INSERT or REPLACE
715715
*
716-
* @return $this
716+
* @return self
717717
* @throws ConnectionException
718718
* @throws DatabaseException
719719
*/
@@ -753,7 +753,7 @@ public function compileInsert()
753753
/**
754754
* Compiles the statements for UPDATE
755755
*
756-
* @return $this
756+
* @return self
757757
* @throws ConnectionException
758758
* @throws DatabaseException
759759
*/
@@ -795,7 +795,7 @@ public function compileUpdate()
795795
/**
796796
* Compiles the statements for DELETE
797797
*
798-
* @return $this
798+
* @return self
799799
* @throws ConnectionException
800800
* @throws DatabaseException
801801
*/
@@ -825,7 +825,7 @@ public function compileDelete()
825825
*
826826
* @param string $sql A SphinxQL query to execute
827827
*
828-
* @return $this
828+
* @return self
829829
*/
830830
public function query($sql)
831831
{
@@ -854,7 +854,7 @@ public function query($sql)
854854
*
855855
* @param array|string $columns Array or multiple string arguments containing column names
856856
*
857-
* @return $this
857+
* @return self
858858
*/
859859
public function select($columns = null)
860860
{
@@ -878,7 +878,7 @@ public function select($columns = null)
878878
*
879879
* @param array|string $columns Array or multiple string arguments containing column names
880880
*
881-
* @return $this
881+
* @return self
882882
*/
883883
public function setSelect($columns = null)
884884
{
@@ -904,7 +904,7 @@ public function getSelect()
904904
/**
905905
* Activates the INSERT mode
906906
*
907-
* @return $this
907+
* @return self
908908
*/
909909
public function insert()
910910
{
@@ -917,7 +917,7 @@ public function insert()
917917
/**
918918
* Activates the REPLACE mode
919919
*
920-
* @return $this
920+
* @return self
921921
*/
922922
public function replace()
923923
{
@@ -932,7 +932,7 @@ public function replace()
932932
*
933933
* @param string $index The index to update into
934934
*
935-
* @return $this
935+
* @return self
936936
*/
937937
public function update($index)
938938
{
@@ -946,7 +946,7 @@ public function update($index)
946946
/**
947947
* Activates the DELETE mode
948948
*
949-
* @return $this
949+
* @return self
950950
*/
951951
public function delete()
952952
{
@@ -962,7 +962,7 @@ public function delete()
962962
*
963963
* @param array $array An array of indexes to use
964964
*
965-
* @return $this
965+
* @return self
966966
*/
967967
public function from($array = null)
968968
{
@@ -984,7 +984,7 @@ public function from($array = null)
984984
* @param string $value The value
985985
* @param bool $half Exclude ", |, - control characters from being escaped
986986
*
987-
* @return $this
987+
* @return self
988988
*/
989989
public function match($column, $value = null, $half = false)
990990
{
@@ -1022,7 +1022,7 @@ public function match($column, $value = null, $half = false)
10221022
* use only string)
10231023
* @param Expression|string|null|bool|array|int|float $value The value to check against
10241024
*
1025-
* @return $this
1025+
* @return self
10261026
*/
10271027
public function where($column, $operator, $value = null)
10281028
{
@@ -1046,7 +1046,7 @@ public function where($column, $operator, $value = null)
10461046
*
10471047
* @param string $column A column to group by
10481048
*
1049-
* @return $this
1049+
* @return self
10501050
*/
10511051
public function groupBy($column)
10521052
{
@@ -1061,7 +1061,7 @@ public function groupBy($column)
10611061
*
10621062
* @param int $n Number of items per group
10631063
*
1064-
* @return $this
1064+
* @return self
10651065
*/
10661066
public function groupNBy($n)
10671067
{
@@ -1078,7 +1078,7 @@ public function groupNBy($n)
10781078
* @param string $column The column to group by
10791079
* @param string $direction The group by direction (asc/desc)
10801080
*
1081-
* @return $this
1081+
* @return self
10821082
*/
10831083
public function withinGroupOrderBy($column, $direction = null)
10841084
{
@@ -1111,7 +1111,7 @@ public function withinGroupOrderBy($column, $direction = null)
11111111
* @param string $operator The operator to use
11121112
* @param string $value The value to check against
11131113
*
1114-
* @return $this
1114+
* @return self
11151115
*/
11161116
public function having($column, $operator, $value = null)
11171117
{
@@ -1136,7 +1136,7 @@ public function having($column, $operator, $value = null)
11361136
* @param string $column The column to order on
11371137
* @param string $direction The ordering direction (asc/desc)
11381138
*
1139-
* @return $this
1139+
* @return self
11401140
*/
11411141
public function orderBy($column, $direction = null)
11421142
{
@@ -1152,7 +1152,7 @@ public function orderBy($column, $direction = null)
11521152
* @param int $offset Offset if $limit is specified, else limit
11531153
* @param null|int $limit The limit to set, null for no limit
11541154
*
1155-
* @return $this
1155+
* @return self
11561156
*/
11571157
public function limit($offset, $limit = null)
11581158
{
@@ -1173,7 +1173,7 @@ public function limit($offset, $limit = null)
11731173
*
11741174
* @param int $offset The offset
11751175
*
1176-
* @return $this
1176+
* @return self
11771177
*/
11781178
public function offset($offset)
11791179
{
@@ -1189,7 +1189,7 @@ public function offset($offset)
11891189
* @param string $name Option name
11901190
* @param Expression|array|string|int|bool|float|null $value Option value
11911191
*
1192-
* @return $this
1192+
* @return self
11931193
*/
11941194
public function option($name, $value)
11951195
{
@@ -1204,7 +1204,7 @@ public function option($name, $value)
12041204
*
12051205
* @param string $index The index to insert/replace into
12061206
*
1207-
* @return $this
1207+
* @return self
12081208
*/
12091209
public function into($index)
12101210
{
@@ -1220,7 +1220,7 @@ public function into($index)
12201220
*
12211221
* @param array $array The array of columns
12221222
*
1223-
* @return $this
1223+
* @return self
12241224
*/
12251225
public function columns($array = array())
12261226
{
@@ -1240,7 +1240,7 @@ public function columns($array = array())
12401240
*
12411241
* @param array $array The array of values matching the columns from $this->columns()
12421242
*
1243-
* @return $this
1243+
* @return self
12441244
*/
12451245
public function values($array)
12461246
{
@@ -1260,7 +1260,7 @@ public function values($array)
12601260
* @param string $column The column name
12611261
* @param string $value The value
12621262
*
1263-
* @return $this
1263+
* @return self
12641264
*/
12651265
public function value($column, $value)
12661266
{
@@ -1280,7 +1280,7 @@ public function value($column, $value)
12801280
*
12811281
* @param array $array Array of key-values
12821282
*
1283-
* @return $this
1283+
* @return self
12841284
*/
12851285
public function set($array)
12861286
{
@@ -1301,7 +1301,7 @@ public function set($array)
13011301
*
13021302
* @param Facet $facet
13031303
*
1304-
* @return $this
1304+
* @return self
13051305
*/
13061306
public function facet($facet)
13071307
{
@@ -1315,7 +1315,7 @@ public function facet($facet)
13151315
*
13161316
* @param array $array The array of characters to escape
13171317
*
1318-
* @return $this
1318+
* @return self
13191319
*/
13201320
public function setFullEscapeChars($array = array())
13211321
{
@@ -1331,7 +1331,7 @@ public function setFullEscapeChars($array = array())
13311331
*
13321332
* @param array $array The array of characters to escape
13331333
*
1334-
* @return $this
1334+
* @return self
13351335
*/
13361336
public function setHalfEscapeChars($array = array())
13371337
{
@@ -1414,7 +1414,7 @@ public function halfEscapeMatch($string)
14141414
/**
14151415
* Clears the existing query build for new query when using the same SphinxQL instance.
14161416
*
1417-
* @return $this
1417+
* @return self
14181418
*/
14191419
public function reset()
14201420
{
@@ -1440,7 +1440,7 @@ public function reset()
14401440
}
14411441

14421442
/**
1443-
* @return $this
1443+
* @return self
14441444
*/
14451445
public function resetWhere()
14461446
{
@@ -1450,7 +1450,7 @@ public function resetWhere()
14501450
}
14511451

14521452
/**
1453-
* @return $this
1453+
* @return self
14541454
*/
14551455
public function resetMatch()
14561456
{
@@ -1460,7 +1460,7 @@ public function resetMatch()
14601460
}
14611461

14621462
/**
1463-
* @return $this
1463+
* @return self
14641464
*/
14651465
public function resetGroupBy()
14661466
{
@@ -1471,7 +1471,7 @@ public function resetGroupBy()
14711471
}
14721472

14731473
/**
1474-
* @return $this
1474+
* @return self
14751475
*/
14761476
public function resetWithinGroupOrderBy()
14771477
{
@@ -1481,7 +1481,7 @@ public function resetWithinGroupOrderBy()
14811481
}
14821482

14831483
/**
1484-
* @return $this
1484+
* @return self
14851485
*/
14861486
public function resetFacets()
14871487
{
@@ -1491,7 +1491,7 @@ public function resetFacets()
14911491
}
14921492

14931493
/**
1494-
* @return $this
1494+
* @return self
14951495
*/
14961496
public function resetHaving()
14971497
{
@@ -1501,7 +1501,7 @@ public function resetHaving()
15011501
}
15021502

15031503
/**
1504-
* @return $this
1504+
* @return self
15051505
*/
15061506
public function resetOrderBy()
15071507
{
@@ -1511,7 +1511,7 @@ public function resetOrderBy()
15111511
}
15121512

15131513
/**
1514-
* @return $this
1514+
* @return self
15151515
*/
15161516
public function resetOptions()
15171517
{

0 commit comments

Comments
 (0)