Completed
Pull Request — master (#25)
by Vincent
08:17
created

WalkCursor   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 5
dl 0
loc 25
ccs 2
cts 2
cp 1
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
namespace Bdf\Prime\Query\Pagination\WalkStrategy;
4
5
use Bdf\Prime\Query\ReadCommandInterface;
6
7
/**
8
 * @internal
0 ignored issues
show
Coding Style Documentation introduced by
@internal tag is not allowed in class comment
Loading history...
9
 */
10
final class WalkCursor
11
{
12
    /**
13
     * @var ReadCommandInterface
14
     */
15
    public $query;
16
17
    /**
18
     * @var mixed
19
     */
20
    public $cursor = null;
21
22
    /**
23
     * @var array|null
24
     */
25
    public $entities;
26
27
    /**
28
     * WalkCursor constructor.
29
     *
30
     * @param ReadCommandInterface $query
31
     */
32 20
    public function __construct(ReadCommandInterface $query)
33
    {
34 20
        $this->query = $query;
35 20
    }
36
}
37