Completed
Pull Request — master (#204)
by Ryan
11:34
created

TestField   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 2
dl 0
loc 21
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * Copyright (c) 2015–2018 Alexandr Viniychuk <http://youshido.com>.
4
 * Copyright (c) 2015–2018 Portey Vasil <https://github.com/portey>.
5
 * Copyright (c) 2018 Ryan Parman <https://github.com/skyzyx>.
6
 * Copyright (c) 2018 Ashley Hutson <https://github.com/asheliahut>.
7
 * Copyright (c) 2015–2018 Contributors.
8
 *
9
 * http://opensource.org/licenses/MIT
10
 */
11
12
declare(strict_types=1);
13
/**
14
 * Date: 13.05.16.
15
 */
16
17
namespace Youshido\Tests\DataProvider;
18
19
use Youshido\GraphQL\Execution\ResolveInfo;
20
use Youshido\GraphQL\Field\AbstractField;
21
use Youshido\GraphQL\Type\Object\AbstractObjectType;
22
use Youshido\GraphQL\Type\Scalar\IntType;
23
24
class TestField extends AbstractField
25
{
26
    /**
27
     * @return AbstractObjectType
28
     */
29
    public function getType()
30
    {
31
        return new IntType();
32
    }
33
34
    public function resolve($value, array $args, ResolveInfo $info)
35
    {
36
        return $value;
37
    }
38
39
    public function getDescription()
40
    {
41
        return 'description';
42
    }
43
}
44