Completed
Pull Request — master (#37)
by Eugene
05:29
created

SqlQueryResult   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 75%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 21
ccs 6
cts 8
cp 0.75
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getData() 0 4 1
A getMetadata() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the Tarantool Client package.
7
 *
8
 * (c) Eugene Leonovich <[email protected]>
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace Tarantool\Client;
15
16
final class SqlQueryResult
17
{
18
    private $data;
19
    private $metadata;
20
21 4
    public function __construct(array $data, array $metadata)
22
    {
23 4
        $this->data = $data;
24 4
        $this->metadata = $metadata;
25 4
    }
26
27 4
    public function getData() : array
28
    {
29 4
        return $this->data;
30
    }
31
32
    public function getMetadata() : array
33
    {
34
        return $this->metadata;
35
    }
36
}
37