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

TestUnionType::getTypes()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 1 Features 0
Metric Value
c 2
b 1
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
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