Passed
Pull Request — master (#18)
by Timon
08:58
created

TableList   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 24
ccs 7
cts 7
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A toArray() 0 6 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\RethinkInterface;
8
use TBolier\RethinkQL\Types\Term\TermType;
9
10
class TableList extends AbstractOperation
11
{
12
    /**
13
     * @param RethinkInterface $rethink
14
     * @param MessageInterface $message
15
     */
16 11
    public function __construct(RethinkInterface $rethink, MessageInterface $message)
17
    {
18 11
        parent::__construct($rethink, $message);
19
20 11
        $this->rethink = $rethink;
21 11
        $this->message = $message;
22 11
    }
23
24
    /**
25
     * @inheritdoc
26
     */
27 11
    public function toArray(): array
28
    {
29
        return [
30 11
            TermType::TABLE_LIST,
31
        ];
32
    }
33
}
34