Completed
Push — master ( 17976d...325209 )
by Portey
07:00
created

UnionTestData   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 1 Features 1
Metric Value
wmc 2
c 1
b 1
f 1
lcom 0
cbo 0
dl 0
loc 34
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getList() 0 21 1
A getOne() 0 7 1
1
<?php
2
/**
3
 * Date: 16.12.15
4
 *
5
 * @author Portey Vasil <[email protected]>
6
 */
7
8
namespace Youshido\Tests\Type\Union\Schema;
9
10
11
class UnionTestData
12
{
13
14
    public static function getList()
15
    {
16
        return [
17
            [
18
                'name'        => 'object 1',
19
                'description' => 'object description 1'
20
            ],
21
            [
22
                'name'        => 'object 2',
23
                'description' => 'object description 2'
24
            ],
25
            [
26
                'name'        => 'object 3',
27
                'description' => 'object description 3'
28
            ],
29
            [
30
                'name'        => 'object 4',
31
                'description' => 'object description 4'
32
            ],
33
        ];
34
    }
35
36
    public static function getOne()
37
    {
38
        return [
39
            'name'        => 'object one',
40
            'description' => 'object description one'
41
        ];
42
    }
43
44
}