Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 2
CRAP
0.00% covered (danger)
0.00%
0 / 1
Events
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 2
6
0.00% covered (danger)
0.00%
0 / 1
 get_valid_actions
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 get_category
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2namespace NewfoldLabs\WP\Module\Migration\Data;
3
4/**
5 * Contains data related to performance Hiive events.
6 */
7final class Events {
8    /**
9     * The Array of categories in an event.
10     *
11     * @var array
12     */
13    protected static $category = array(
14        'wonder_start',
15        'wp_migration',
16    );
17
18    /**
19     * List of valid actions that an event can perform.
20     *
21     * A value of true indicates that the action is valid, set it to null if you want to invalidate an action.
22     *
23     * @var array
24     */
25    protected static $valid_actions = array(
26        'migration_completed'              => true,
27        'migration_failed'                 => true,
28        'migration_aborted'                => true,
29        'migration_vendor_plugin_activate' => true,
30        'migration_vendor_plugin_connect'  => true,
31        'migration_get_vendor_api_key'     => true,
32        'migration_successful'             => true,
33        'migration_initiated_tools'        => true,
34        'mfe_migration_initiated'          => true,
35        'migration_initiated'              => true,
36    );
37
38    /**
39     * Returns the list of valid actions that an event can perform
40     *
41     * @return array
42     */
43    public static function get_valid_actions() {
44        return self::$valid_actions;
45    }
46
47    /**
48     * Valid categories of on event.
49     *
50     * @return array
51     */
52    public static function get_category() {
53        return self::$category;
54    }
55}