Completed
Branch EDTR/refactor-fast-api-fetch (d0e0df)
by
unknown
09:08 queued 34s
created

GraphQLInputField::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 19

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 5
dl 0
loc 19
rs 9.6333
c 0
b 0
f 0
1
<?php
2
3
namespace EventEspresso\core\services\graphql\fields;
4
5
/**
6
 * Class GraphQLInputField
7
 *
8
 * @package       Event Espresso
9
 * @author        Manzoor Wani
10
 */
11
class GraphQLInputField extends GraphQLField
12
{
13
14
    /**
15
	 * @param string          $name
16
	 * @param string|string[] $type
17
     * @param string|null     $key
18
     * @param string          $description
19
     * @param array           $caps
20
     */
21
    public function __construct(
22
		$name,
23
        $type,
24
        $key = null,
25
        $description = '',
26
        array $caps = []
27
    ) {
28
        parent::__construct(
29
            $name,
30
            $type,
31
            $key,
32
            $description,
33
            null,
34
            null,
35
            $caps
36
        );
37
38
        $this->setUseForOutput(false);
39
    }
40
}
41