Completed
Branch EDTR/refactor-fast-api-fetch (d0e0df)
by
unknown
09:08 queued 34s
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\services\graphql\fields;
4
5
/**
6
 * Class GraphQLOutputField
7
 *
8
 * @package       Event Espresso
9
 * @author        Manzoor Wani
10
 */
11
class GraphQLOutputField 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 callable|null   $formatter
20
     * @param callable|null   $resolver
21
     * @param array           $caps
22
     */
23
    public function __construct(
24
		$name,
25
        $type,
26
        $key = null,
27
        $description = '',
28
        callable $formatter = null,
29
        callable $resolver = null,
30
        array $caps = []
31
    ) {
32
        parent::__construct(
33
            $name,
34
            $type,
35
            $key,
36
            $description,
37
            $formatter,
38
            $resolver,
39
            $caps
40
        );
41
42
        $this->setUseForInput(false);
43
    }
44
}
45