TestField   A
last analyzed

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getType() 0 4 1
A resolve() 0 4 1
A getDescription() 0 4 1
1
<?php
2
/**
3
 * Date: 13.05.16
4
 *
5
 * @author Portey Vasil <[email protected]>
6
 */
7
8
namespace Youshido\Tests\DataProvider;
9
10
use Youshido\GraphQL\Execution\ResolveInfo;
11
use Youshido\GraphQL\Field\AbstractField;
12
use Youshido\GraphQL\Type\Object\AbstractObjectType;
13
use Youshido\GraphQL\Type\Scalar\IntType;
14
15
class TestField extends AbstractField
16
{
17
18
    /**
19
     * @return AbstractObjectType
20
     */
21
    public function getType()
22
    {
23
        return new IntType();
24
    }
25
26
    public function resolve($value, array $args, ResolveInfo $info)
27
    {
28
        return $value;
29
    }
30
31
    public function getDescription()
32
    {
33
        return 'description';
34
    }
35
}
36