Completed
Push — master ( c7f3c1...18a515 )
by Alexandr
17:08
created

InputObjectTypeConfig::getOutputType()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 4
ccs 0
cts 0
cp 0
rs 10
cc 2
eloc 2
nc 2
nop 0
crap 6
1
<?php
2
/*
3
* This file is a part of graphql-youshido project.
4
*
5
* @author Alexandr Viniychuk <[email protected]>
6
* created: 12/1/15 11:13 PM
7
*/
8
9
namespace Youshido\GraphQL\Type\Config\Object;
10
11
12
use Youshido\GraphQL\Type\TypeMap;
13
14
class InputObjectTypeConfig extends ObjectTypeConfig
15
{
16 1
    public function getRules()
17
    {
18
        return [
19 1
            'name'        => ['type' => TypeMap::TYPE_STRING, 'required' => true],
20
            'description' => ['type' => TypeMap::TYPE_STRING],
21
            'fields'      => ['type' => TypeMap::TYPE_ARRAY_OF_INPUTS],
22
        ];
23
    }
24
}