Passed
Push — master ( 5197c9...313b01 )
by Sébastien
04:05 queued 15s
created

WalkCursor::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 1
crap 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