Code Duplication    Length = 32-32 lines in 2 locations

core/domain/services/graphql/inputs/DatetimesConnectionOrderbyInput.php 1 location

@@ 19-50 (lines=32) @@
16
 * @author  Manzoor Wani
17
 * @since   $VID:$
18
 */
19
class DatetimesConnectionOrderbyInput extends InputBase
20
{
21
22
    /**
23
     * DatetimesConnectionOrderbyInput constructor.
24
     */
25
    public function __construct()
26
    {
27
        $this->setName('DatetimesConnectionOrderbyInput');
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' => 'DatetimesConnectionOrderbyEnum']
43
            ),
44
            new GraphQLField(
45
                'order',
46
                'OrderEnum'
47
            ),
48
        ];
49
    }
50
}
51

core/domain/services/graphql/inputs/TicketsConnectionOrderbyInput.php 1 location

@@ 19-50 (lines=32) @@
16
 * @author  Manzoor Wani
17
 * @since   $VID:$
18
 */
19
class TicketsConnectionOrderbyInput extends InputBase
20
{
21
22
    /**
23
     * TicketsConnectionOrderbyInput constructor.
24
     */
25
    public function __construct()
26
    {
27
        $this->setName('TicketsConnectionOrderbyInput');
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' => 'TicketsConnectionOrderbyEnum']
43
            ),
44
            new GraphQLField(
45
                'order',
46
                'OrderEnum'
47
            ),
48
        ];
49
    }
50
}
51