Completed
Branch EDTR/refactor-fast-api-fetch (385e39)
by
unknown
19:04 queued 10:17
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\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