File size: 2,423 Bytes
07c3cdd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<?php

namespace ProcessMaker\Plugins\Interfaces;

use ProcessMaker\Plugins\Traits\Attributes;

/**
 * Class CaseSchedulerPlugin
 * @package ProcessMaker\Plugins\Interfaces
 */
class CaseSchedulerPlugin
{
    use Attributes;

    private $Namespace;
    private $ActionId;
    private $ActionForm;
    private $ActionSave;
    private $ActionExecute;
    private $ActionGetFields;

    /**
     * This function is the constructor of the CaseSchedulerPlugin class
     * @param string $Namespace
     * @param string $ActionId
     * @param string $ActionForm
     * @param string $ActionSave
     * @param string $ActionExecute
     * @param string $ActionGetFields
     */
    public function __construct($Namespace, $ActionId, $ActionForm, $ActionSave, $ActionExecute, $ActionGetFields)
    {
        $this->Namespace = $Namespace;
        $this->ActionId = $ActionId;
        $this->ActionForm = $ActionForm;
        $this->ActionSave = $ActionSave;
        $this->ActionExecute = $ActionExecute;
        $this->ActionGetFields = $ActionGetFields;
    }

    /**
     * Get name of plugin
     * @return string
     */
    public function getNamespace()
    {
        return $this->Namespace;
    }

    /**
     * Get action Id
     * @return string
     */
    public function getActionId()
    {
        return $this->ActionId;
    }

    /**
     * Get action form
     * @return string
     */
    public function getActionForm()
    {
        return $this->ActionForm;
    }

    /**
     * Get action Save
     * @return string
     */
    public function getActionSave()
    {
        return $this->ActionSave;
    }

    /**
     * Get action execute
     * @return string
     */
    public function getActionExecute()
    {
        return $this->ActionExecute;
    }

    /**
     * Get action fields
     * @return string
     */
    public function getActionGetFields()
    {
        return $this->ActionGetFields;
    }

    /**
     * Check if CaseSchedulerPlugin name of plugin is equal to params
     * @param string $Namespace
     * @return bool
     */
    public function equalNamespaceTo($Namespace)
    {
        return $Namespace == $this->Namespace;
    }

    /**
     * Check if CaseSchedulerPlugin Action Id is equal to params
     * @param string $ActionId
     * @return bool
     */
    public function equalActionIdTo($ActionId)
    {
        return $ActionId == $this->ActionId;
    }
}