TestMutationObjectType   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
lcom 0
cbo 3
dl 0
loc 14
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getOutputType() 0 4 1
A build() 0 4 1
1
<?php
2
/*
3
 * This file is a part of GraphQL project.
4
 *
5
 * @author Alexandr Viniychuk <[email protected]>
6
 * created: 2:00 PM 5/15/16
7
 */
8
9
namespace Youshido\Tests\DataProvider;
10
11
12
use Youshido\GraphQL\Type\Object\AbstractMutationObjectType;
13
use Youshido\GraphQL\Type\Scalar\IntType;
14
use Youshido\GraphQL\Type\Scalar\StringType;
15
16
class TestMutationObjectType extends AbstractMutationObjectType
17
{
18
    public function getOutputType()
19
    {
20
        return new StringType();
21
    }
22
23
    public function build($config)
24
    {
25
        $this->addArgument('increment', new IntType());
26
    }
27
28
29
}