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

TestExtendedType   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 5 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
}