Completed
Push — master ( d52ee7...e7842c )
by Alexandr
03:54
created

TestUnionType   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getTypes() 0 6 1
A resolveType() 0 4 1
A getDescription() 0 4 1
1
<?php
2
/**
3
 * Date: 13.05.16
4
 *
5
 * @author Portey Vasil <[email protected]>
6
 */
7
8
namespace Youshido\Tests\DataProvider;
9
10
11
use Youshido\GraphQL\Type\Union\AbstractUnionType;
12
13
class TestUnionType extends AbstractUnionType
14
{
15
16
    public function getTypes()
17
    {
18
        return [
19
            new TestObjectType()
20
        ];
21
    }
22
23
    public function resolveType($object)
24
    {
25
        return $object;
26
    }
27
28
    public function getDescription()
29
    {
30
        return 'Union collect cars types';
31
    }
32
33
34
}
35