Completed
Push — master ( 9a8c05...020154 )
by Alexandr
02:48
created

TestSchema   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A build() 0 5 1
A getName() 0 4 1
1
<?php
2
/*
3
* This file is a part of GraphQL project.
4
*
5
* @author Alexandr Viniychuk <[email protected]>
6
* created: 12/3/15 11:28 PM
7
*/
8
9
namespace Youshido\Tests\DataProvider;
10
11
use Youshido\GraphQL\Schema;
12
use Youshido\GraphQL\Type\Config\TypeConfigInterface;
13
use Youshido\GraphQL\Type\ListType\ListType;
14
15
class TestSchema extends Schema
16
{
17
    public function build(TypeConfigInterface $config)
18
    {
19
        $config
20
            ->addField('users', new ListType(['item' => new UserType()]));
21
    }
22
23
    public function getName()
24
    {
25
        return 'TestSchema';
26
    }
27
}