InputObjectTypeConfig   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 11
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getRules() 0 8 1
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\Config\Object;
10
11
12
use Youshido\GraphQL\Type\TypeService;
13
14
class InputObjectTypeConfig extends ObjectTypeConfig
15
{
16
    public function getRules()
17
    {
18
        return [
19
            'name'        => ['type' => TypeService::TYPE_STRING, 'required' => true],
20
            'fields'      => ['type' => TypeService::TYPE_ARRAY_OF_INPUT_FIELDS, 'final' => true],
21
            'description' => ['type' => TypeService::TYPE_STRING],
22
        ];
23
    }
24
}
25