TestConfigExtraFields::getRules()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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