Completed
Branch EDTR/refactor-fast-api-fetch (385e39)
by
unknown
19:04 queued 10:17
created

GraphQLInputField   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 19 1
1
<?php
2
3
namespace EventEspresso\core\domain\services\graphql\fields;
4
5
use EventEspresso\core\domain\services\graphql\fields\GraphQLField;
6
use GraphQL\Type\Definition\ResolveInfo;
7
use LogicException;
8
use WPGraphQL\AppContext;
9
10
/**
11
 * Class GraphQLInputField
12
 *
13
 * @package       Event Espresso
14
 * @author        Manzoor Wani
15
 */
16
class GraphQLInputField extends GraphQLField
17
{
18
19
    /**
20
	 * @param string          $name
21
	 * @param string|string[] $type
22
     * @param string|null     $key
23
     * @param string          $description
24
     * @param array           $caps
25
     */
26
    public function __construct(
27
		$name,
28
        $type,
29
        $key = null,
30
        $description = '',
31
        array $caps = []
32
    ) {
33
        parent::__construct(
34
            $name,
35
            $type,
36
            $key,
37
            $description,
38
            null,
39
            null,
40
            $caps
41
        );
42
43
        $this->setUseForOutput(false);
44
    }
45
}
46