Completed
Push — master ( 5d17f3...e891dc )
by Alexandr
03:56
created

TestExtendedType::build()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
/*
3
* This file is a part of GraphQL project.
4
*
5
* @author Alexandr Viniychuk <[email protected]>
6
* created: 8/14/16 1:19 PM
7
*/
8
9
namespace Youshido\Tests\DataProvider;
10
11
12
use Youshido\GraphQL\Config\Object\ObjectTypeConfig;
13
use Youshido\GraphQL\Type\Object\AbstractObjectType;
14
use Youshido\GraphQL\Type\Scalar\StringType;
15
16
class TestExtendedType extends AbstractObjectType
17
{
18
    public function build($config)
19
    {
20
        $config->applyInterface(new TestInterfaceType())
21
            ->addField('ownField', new StringType());
22
    }
23
24
25
}