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

TestSchema::build()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 5
rs 9.4286
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: 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
}