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

GraphQLOutputField::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 21

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 7
dl 0
loc 21
rs 9.584
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 GraphQLOutputField
12
 *
13
 * @package       Event Espresso
14
 * @author        Manzoor Wani
15
 */
16
class GraphQLOutputField 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 callable|null   $formatter
25
     * @param callable|null   $resolver
26
     * @param array           $caps
27
     */
28
    public function __construct(
29
		$name,
30
        $type,
31
        $key = null,
32
        $description = '',
33
        callable $formatter = null,
34
        callable $resolver = null,
35
        array $caps = []
36
    ) {
37
        parent::__construct(
38
            $name,
39
            $type,
40
            $key,
41
            $description,
42
            $formatter,
43
            $resolver,
44
            $caps
45
        );
46
47
        $this->setUseForInput(false);
48
    }
49
}
50