Cursor
last analyzed

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 17
ccs 0
cts 2
cp 0
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
has() 0 1 ?
get() 0 1 ?
1
<?php
2
3
namespace mav3rick177\RapidPagination\Base\Contracts;
4
5
/**
6
 * Interface Cursor
7
 */
8
interface Cursor
9
{
10
    /**
11
     * Return a value indicating whether the cursor is non-empty and has the specified columns.
12
     *
13
     * @return null|bool null if the cursor is empty; true if the cursor has all the columns; otherwise false.
14
     */
15
    public function has(...$columns);
16
17
    /**
18
     * Return a cursor specified by the column.
19
     *
20
     * @param  string     $column Column.
21
     * @return int|string
22
     */
23
    public function get($column);
24
}
25