1 | <?php |
||
10 | class Builder extends BaseBuilder |
||
11 | { |
||
12 | /** |
||
13 | * Use cassandra filtering |
||
14 | * |
||
15 | * @var bool |
||
16 | */ |
||
17 | public $allowFiltering = false; |
||
18 | |||
19 | /** |
||
20 | * Size of fetched page |
||
21 | * |
||
22 | * @var null|int |
||
23 | */ |
||
24 | protected $pageSize = null; |
||
25 | |||
26 | /** |
||
27 | * Pagination state token |
||
28 | * |
||
29 | * @var null|string |
||
30 | */ |
||
31 | protected $paginationStateToken = null; |
||
32 | |||
33 | /** |
||
34 | * Indicate what amount of pages should be fetched |
||
35 | * all or single |
||
36 | * |
||
37 | * @var bool |
||
38 | */ |
||
39 | protected $fetchAllResults = true; |
||
40 | |||
41 | /** |
||
42 | * @inheritdoc |
||
43 | */ |
||
44 | 61 | public function __construct(Connection $connection, Grammar $grammar = null, Processor $processor = null) |
|
50 | |||
51 | /** |
||
52 | * Support "allow filtering" |
||
53 | */ |
||
54 | 3 | public function allowFiltering($bool = true) { |
|
55 | 3 | $this->allowFiltering = (bool) $bool; |
|
56 | |||
57 | 3 | return $this; |
|
58 | } |
||
59 | |||
60 | /** |
||
61 | * Insert a new record into the database. |
||
62 | * |
||
63 | * @param array $values |
||
64 | * @return bool |
||
65 | */ |
||
66 | 54 | public function insert(array $values) |
|
100 | |||
101 | /** |
||
102 | * Execute the query as a "select" statement. |
||
103 | * |
||
104 | * @param array $columns |
||
105 | * |
||
106 | * @return \Illuminate\Support\Collection |
||
107 | */ |
||
108 | 56 | public function get($columns = ['*']) |
|
146 | |||
147 | /** |
||
148 | * Run the query as a "select" statement against the connection. |
||
149 | * |
||
150 | * @param array $options |
||
151 | * |
||
152 | * @return array |
||
153 | */ |
||
154 | 56 | protected function runSelect(array $options = []) |
|
160 | |||
161 | /** |
||
162 | * Set pagination state token to fetch |
||
163 | * next page |
||
164 | * |
||
165 | * @param string $token |
||
166 | * |
||
167 | * @return Builder |
||
168 | */ |
||
169 | 1 | public function setPaginationStateToken($token = null) |
|
175 | |||
176 | /** |
||
177 | * Set page size |
||
178 | * |
||
179 | * @param int $pageSize |
||
180 | * |
||
181 | * @return Builder |
||
182 | */ |
||
183 | 20 | public function setPageSize($pageSize = null) |
|
193 | |||
194 | /** |
||
195 | * Get collection with single page results |
||
196 | * |
||
197 | * @param $columns array |
||
198 | * |
||
199 | * @return \Illuminate\Support\Collection |
||
200 | */ |
||
201 | 19 | public function getPage($columns = ['*']) |
|
211 | } |
||
212 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.