Completed
Push — master ( 577784...c1d3e6 )
by Portey
09:27
created

InputField::getDefaultValue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
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:26 PM
7
*/
8
9
namespace Youshido\GraphQL\Type\Field;
10
11
12
use Youshido\GraphQL\Type\Config\Field\InputFieldConfig;
13
14
class InputField extends Field
15
{
16
    /** @var InputFieldConfig */
17
    protected $config;
18
19 13
    public function __construct($config)
20
    {
21 13
        $this->config = new InputFieldConfig($config);
22 13
    }
23
24
    public function getDefaultValue()
25
    {
26
        return $this->config->getDefaultValue();
27
    }
28
29
}