Skip to content

Commit ff1129b

Browse files
committed
Fix implements and extends
1 parent 7e78b6a commit ff1129b

File tree

4 files changed

+30
-15
lines changed

4 files changed

+30
-15
lines changed

docs/roadmap.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
## current and next versions
66

77
| method | Version 1.0 | Version 1.1 | Version x |
8-
| --- | :---: | :---: |
8+
| --- | :---: | :---: | :---: |
99
| **Accessing ReQL**
1010
| r ||| |
1111
| connection ||| |
@@ -18,18 +18,18 @@
1818
| noreplyWait ||| |
1919
| server ||| |
2020
| optArg ||| |
21-
| | | |
21+
| | | | |
2222
| **Cursors**
2323
| next ||| |
2424
| for ||| |
2525
| toList ||| |
2626
| close ||| |
27-
| | | |
27+
| | | | |
2828
| **Manipulating databases**
2929
| dbCreate ||| |
3030
| dbDrop ||| |
3131
| dbList ||| |
32-
| | | |
32+
| | | | |
3333
| **Manipulating tables**
3434
| tableCreate ||| |
3535
| tableDrop ||| |
@@ -40,14 +40,14 @@
4040
| indexRename ||| |
4141
| indexStatus ||| |
4242
| indexWait ||| |
43-
| | | |
43+
| | | | |
4444
| **Writing data**
4545
| insert ||| |
4646
| update ||| |
4747
| replace ||| |
4848
| delete ||| |
4949
| sync ||| |
50-
| | | |
50+
| | | | |
5151
| **Selecting data**
5252
| db ||| |
5353
| table ||| |
@@ -60,7 +60,7 @@
6060
| outerJoin ||| |
6161
| eqJoin ||| |
6262
| zip ||| |
63-
| | | |
63+
| | | | |
6464
| **Transformations**
6565
| map ||| |
6666
| withFields ||| |
@@ -74,7 +74,7 @@
7474
| isEmpty ||| |
7575
| union ||| |
7676
| sample ||| |
77-
| | | |
77+
| | | | |
7878
| **Aggregation**
7979
| group ||| |
8080
| ungroup ||| |
@@ -87,7 +87,7 @@
8787
| max ||| |
8888
| distinct ||| |
8989
| contains ||| |
90-
| | | |
90+
| | | | |
9191
| **Document manipulation**
9292
| row ||| |
9393
| pluck ||| |
@@ -135,7 +135,7 @@
135135
| round ||| |
136136
| ceil ||| |
137137
| floor ||| |
138-
| | | |
138+
| | | | |
139139
| **Dates and times**
140140
| now ||| |
141141
| time ||| |
@@ -156,7 +156,7 @@
156156
| seconds ||| |
157157
| toISO8601 ||| |
158158
| toEpochTime ||| |
159-
| | | |
159+
| | | | |
160160
| **Control structures**
161161
| array ||| |
162162
| hashMap ||| |
@@ -191,7 +191,7 @@
191191
| point ||| |
192192
| polygon ||| |
193193
| polygonSub ||| |
194-
| | | |
194+
| | | | |
195195
| **Administration**
196196
| grant ||| |
197197
| config ||| |

src/Query/Aggregation/AbstractAggregation.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,19 @@
77

88
abstract class AbstractAggregation extends AbstractQuery implements AggregationInterface
99
{
10+
/**
11+
* @inheritdoc
12+
*/
13+
public function limit($value): AggregationInterface
14+
{
15+
return new Limit($this->rethink, $this->message, $this, $value);
16+
}
17+
18+
/**
19+
* @inheritdoc
20+
*/
21+
public function orderBy($key): AggregationInterface
22+
{
23+
return new OrderBy($this->rethink, $this->message, $this, $key);
24+
}
1025
}

src/Query/Table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function __construct(string $name, RethinkInterface $rethink, MessageInte
4242
/**
4343
* @inheritdoc
4444
*/
45-
public function get($value): QueryInterface
45+
public function get($value): AbstractQuery
4646
{
4747
return new Get($this->rethink, $this->message, $this, $value);
4848
}

src/Query/TableInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ interface TableInterface extends OperationInterface
1010
{
1111
/**
1212
* @param string|int $value
13-
* @return QueryInterface
13+
* @return AbstractQuery
1414
*/
15-
public function get($value): QueryInterface;
15+
public function get($value): AbstractQuery;
1616

1717
/**
1818
* @param int $n

0 commit comments

Comments
 (0)