9
9
* @contact group@hyperf.io
10
10
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
11
11
*/
12
+
12
13
namespace Hyperf \Database \Model ;
13
14
14
15
use BadMethodCallException ;
15
16
use Closure ;
16
17
use DateTimeInterface ;
17
18
use Generator ;
18
19
use Hyperf \Contract \Arrayable ;
20
+ use Hyperf \Contract \LengthAwarePaginatorInterface ;
21
+ use Hyperf \Contract \PaginatorInterface ;
22
+ use Hyperf \Database \Model \Relations \Relation ;
23
+ use Hyperf \Database \Query \Expression ;
24
+ use Hyperf \Database \Query \Grammars \Grammar ;
25
+ use Hyperf \Database \Query \Processors \Processor ;
19
26
use InvalidArgumentException ;
20
27
use ReflectionException ;
21
28
use RuntimeException ;
@@ -359,7 +366,7 @@ public static function pluck($column, $key = null)
359
366
* @param array $columns
360
367
* @param string $pageName
361
368
* @param null|int $page
362
- * @return \Hyperf\Contract\ LengthAwarePaginatorInterface
369
+ * @return LengthAwarePaginatorInterface
363
370
* @throws InvalidArgumentException
364
371
*/
365
372
public static function paginate ($ perPage = null , $ columns = [], $ pageName = 'page ' , $ page = null )
@@ -374,7 +381,7 @@ public static function paginate($perPage = null, $columns = [], $pageName = 'pag
374
381
* @param array $columns
375
382
* @param string $pageName
376
383
* @param null|int $page
377
- * @return \Hyperf\Contract\ PaginatorInterface
384
+ * @return PaginatorInterface
378
385
*/
379
386
public static function simplePaginate ($ perPage = null , $ columns = [], $ pageName = 'page ' , $ page = null )
380
387
{
@@ -651,7 +658,7 @@ public static function unless($value, $callback, $default = null)
651
658
/**
652
659
* Add a relationship count / exists condition to the query.
653
660
*
654
- * @param \Hyperf\Database\Model\Relations\ Relation|string $relation
661
+ * @param Relation|string $relation
655
662
* @param string $operator
656
663
* @param int $count
657
664
* @param string $boolean
@@ -2180,7 +2187,7 @@ public static function truncate()
2180
2187
* Create a raw database expression.
2181
2188
*
2182
2189
* @param mixed $value
2183
- * @return \Hyperf\Database\Query\ Expression
2190
+ * @return Expression
2184
2191
*/
2185
2192
public static function raw ($ value )
2186
2193
{
@@ -2247,7 +2254,7 @@ public static function mergeBindings($query)
2247
2254
/**
2248
2255
* Get the database query processor instance.
2249
2256
*
2250
- * @return \Hyperf\Database\Query\Processors\ Processor
2257
+ * @return Processor
2251
2258
*/
2252
2259
public static function getProcessor ()
2253
2260
{
@@ -2257,7 +2264,7 @@ public static function getProcessor()
2257
2264
/**
2258
2265
* Get the query grammar instance.
2259
2266
*
2260
- * @return \Hyperf\Database\Query\Grammars\ Grammar
2267
+ * @return Grammar
2261
2268
*/
2262
2269
public static function getGrammar ()
2263
2270
{
0 commit comments