Passed
Pull Request — master (#18)
by Timon
05:57 queued 02:54
created

DbList::toArray()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 2
cts 2
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
crap 1
1
<?php
2
declare(strict_types=1);
3
4
namespace TBolier\RethinkQL\Query\Operation;
5
6
use TBolier\RethinkQL\Message\MessageInterface;
7
use TBolier\RethinkQL\Query\AbstractQuery;
8
use TBolier\RethinkQL\RethinkInterface;
9
use TBolier\RethinkQL\Types\Term\TermType;
10
11
class DbList extends AbstractQuery
12
{
13
    /**
14
     * @param RethinkInterface $rethink
15
     * @param MessageInterface $message
16
     */
17 13
    public function __construct(RethinkInterface $rethink, MessageInterface $message)
18
    {
19 13
        parent::__construct($rethink, $message);
20
21 13
        $this->rethink = $rethink;
22 13
        $this->message = $message;
23 13
    }
24
25
    /**
26
     * @inheritdoc
27
     */
28 13
    public function toArray(): array
29
    {
30
        return [
31 13
            TermType::DB_LIST,
32
        ];
33
    }
34
}
35