Completed
Branch EDTR/master (2c6b27)
by
unknown
33:34 queued 25:23
created

ModelNameEnum   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
dl 0
loc 30
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 3

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getValues() 0 11 1
1
<?php
2
3
namespace EventEspresso\core\domain\services\graphql\enums;
4
5
use EEM_Datetime;
6
use EEM_Ticket;
7
use EventEspresso\core\services\graphql\enums\EnumBase;
8
9
/**
10
 * Class ModelNameEnum
11
 * Description
12
 *
13
 * @package EventEspresso\core\domain\services\graphql\enums
14
 * @author  Manzoor Wani
15
 * @since   $VID:$
16
 */
17
class ModelNameEnum extends EnumBase
18
{
19
20
    /**
21
     * ModelNameEnum constructor.
22
     */
23
    public function __construct()
24
    {
25
        $this->setName($this->namespace . 'ModelNameEnum');
26
        $this->setDescription(esc_html__('Entity model name', 'event_espresso'));
27
        parent::__construct();
28
    }
29
30
31
    /**
32
     * @return array
33
     * @since $VID:$
34
     */
35
    protected function getValues()
36
    {
37
        return [
38
            'DATETIME'     => [
39
                'value'       => EEM_Datetime::instance()->item_name(),
40
            ],
41
            'TICKET'     => [
42
                'value'       => EEM_Ticket::instance()->item_name(),
43
            ],
44
        ];
45
    }
46
}
47