Completed
Branch FET/reg-form-builder/main (a66e69)
by
unknown
09:49 queued 19s
created

FormSectionStatusEnum::getValues()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 20

Duplication

Lines 20
Ratio 100 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 20
loc 20
rs 9.6
c 0
b 0
f 0
1
<?php
2
3
namespace EventEspresso\core\domain\services\graphql\enums;
4
5
use EventEspresso\core\services\graphql\enums\EnumBase;
6
use EventEspresso\core\services\form\meta\Element;
7
8
/**
9
 * Class FormSectionStatusEnum
10
 * Description
11
 *
12
 * @package EventEspresso\core\domain\services\graphql\enums
13
 * @author  Manzoor Wani
14
 * @since   $VID:$
15
 */
16 View Code Duplication
class FormSectionStatusEnum extends EnumBase
17
{
18
19
    /**
20
     * FormSectionStatusEnum constructor.
21
     */
22
    public function __construct()
23
    {
24
        $this->setName($this->namespace . 'FormSectionStatusEnum');
25
        $this->setDescription(esc_html__(
26
            'Whether form section is active, archived, shared, trashed, or used as a default on new forms.',
27
            'event_espresso'
28
        ));
29
        parent::__construct();
30
    }
31
32
33
    /**
34
     * @return array
35
     */
36
    protected function getValues(): array
37
    {
38
        return [
39
            'ACTIVE'   => [
40
                'value' => Element::STATUS_ACTIVE,
41
            ],
42
            'ARCHIVED' => [
43
                'value' => Element::STATUS_ARCHIVED,
44
            ],
45
            'DEFAULT'  => [
46
                'value' => Element::STATUS_DEFAULT,
47
            ],
48
            'SHARED'   => [
49
                'value' => Element::STATUS_SHARED,
50
            ],
51
            'TRASHED'  => [
52
                'value' => Element::STATUS_TRASHED,
53
            ],
54
        ];
55
    }
56
}
57