DbList   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A toArray() 0 4 1
1
<?php
2
declare(strict_types = 1);
3
4
namespace TBolier\RethinkQL\Query\Operation;
5
6
use TBolier\RethinkQL\Query\AbstractQuery;
7
use TBolier\RethinkQL\RethinkInterface;
8
use TBolier\RethinkQL\Types\Term\TermType;
9
10
class DbList extends AbstractQuery
11
{
12
    public function __construct(RethinkInterface $rethink)
13
    {
14
        parent::__construct($rethink);
15
16
        $this->rethink = $rethink;
17 14
    }
18
19 14
    public function toArray(): array
20
    {
21 14
        return [
22 14
            TermType::DB_LIST,
23 14
        ];
24
    }
25
}
26