TestMutationObjectType::build()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
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: 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
}