Completed
Branch EDTR/master (dbc914)
by
unknown
09:15 queued 40s
created

AttendeesConnectionOrderbyInput::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 6
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace EventEspresso\core\domain\services\graphql\inputs;
4
5
use EventEspresso\core\services\graphql\fields\GraphQLFieldInterface;
6
use EventEspresso\core\services\graphql\inputs\InputBase;
7
use EventEspresso\core\services\graphql\fields\GraphQLField;
8
use EventEspresso\core\services\graphql\fields\GraphQLInputField;
9
use EventEspresso\core\services\graphql\fields\GraphQLOutputField;
10
11
/**
12
 * Class AttendeesConnectionOrderbyInput
13
 * Description
14
 *
15
 * @package EventEspresso\core\domain\services\graphql\inputs
16
 * @author  Manzoor Wani
17
 * @since   $VID:$
18
 */
19
class AttendeesConnectionOrderbyInput extends InputBase
20
{
21
22
    /**
23
     * AttendeesConnectionOrderbyInput constructor.
24
     */
25
    public function __construct()
26
    {
27
        $this->setName($this->namespace . 'AttendeesConnectionOrderbyInput');
28
        $this->setDescription(esc_html__('Options for ordering the connection', 'event_espresso'));
29
        parent::__construct();
30
    }
31
32
33
    /**
34
     * @return GraphQLFieldInterface[]
35
     * @since $VID:$
36
     */
37
    protected function getFields()
38
    {
39
        return [
40
            new GraphQLField(
41
                'field',
42
                ['non_null' => $this->namespace . 'AttendeesConnectionOrderbyEnum']
43
            ),
44
            new GraphQLField(
45
                'order',
46
                'OrderEnum'
47
            ),
48
        ];
49
    }
50
}
51