ListBuilderTestsBase   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 9
dl 0
loc 31
rs 10
c 1
b 0
f 1
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getFields() 0 7 1
A getRecords() 0 8 1
1
<?php
2
namespace Mezon\Gui\Tests;
3
4
use PHPUnit\Framework\TestCase;
5
6
/**
7
 *
8
 * @psalm-suppress PropertyNotSetInConstructor
9
 */
10
class ListBuilderTestsBase extends TestCase
11
{
12
13
    /**
14
     * Method returns list of fields
15
     *
16
     * @return array Fields algorithms object
17
     */
18
    protected function getFields(): array
19
    {
20
        return [
21
            'id',
22
            'domain_id',
23
            'title',
24
            'transformed'
25
        ];
26
    }
27
28
    /**
29
     * Method returns testing records
30
     *
31
     * @return array testing records
32
     */
33
    protected function getRecords(): array
34
    {
35
        return [
36
            [
37
                'id' => 1,
38
            ],
39
            [
40
                'id' => 2,
41
            ]
42
        ];
43
    }
44
}
45