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

Fixture::getFields()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 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