Completed
Push — master ( 26008b...b0b032 )
by Olivier
03:58
created

Fixture   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 28
ccs 11
cts 11
cp 1
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getTableName() 0 4 1
A getFields() 0 4 1
A getTypes() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Shapin\Datagen\DBAL;
6
7
class Fixture
8
{
9
    private $tableName;
10
    private $fields;
11
    private $types = [];
12
13 4
    public function __construct(string $tableName, array $fields, array $types = [])
14
    {
15 4
        $this->tableName = $tableName;
16 4
        $this->fields = $fields;
17 4
        $this->types = $types;
18 4
    }
19
20 4
    public function getTableName(): string
21
    {
22 4
        return $this->tableName;
23
    }
24
25 4
    public function getFields(): array
26
    {
27 4
        return $this->fields;
28
    }
29
30 4
    public function getTypes(): array
31
    {
32 4
        return $this->types;
33
    }
34
}
35