TestConfigExtraFields   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getRules() 0 6 1
1
<?php
2
/*
3
* This file is a part of GraphQL project.
4
*
5
* @author Alexandr Viniychuk <[email protected]>
6
* created: 5/12/16 9:27 PM
7
*/
8
9
namespace Youshido\Tests\DataProvider;
10
11
12
use Youshido\GraphQL\Config\AbstractConfig;
13
use Youshido\GraphQL\Type\TypeService;
14
15
class TestConfigExtraFields extends AbstractConfig
16
{
17
18
    protected $extraFieldsAllowed = true;
19
20
    public function getRules()
21
    {
22
        return [
23
            'name' => ['type' => TypeService::TYPE_ANY, 'required' => true]
24
        ];
25
    }
26
27
28
}
29