Spaces:
Sleeping
Sleeping
File size: 2,012 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 | <?php
namespace ProcessMaker\Plugins\Interfaces;
use ProcessMaker\Plugins\Traits\Attributes;
/**
* Class StepDetail
* @package ProcessMaker\Plugins\Interfaces
*/
class StepDetail
{
use Attributes;
private $Namespace;
private $StepId;
private $StepName;
private $StepTitle;
private $SetupStepPage;
/**
* This function is the constructor of the StepDetail class
* @param string $Namespace
* @param string $StepId
* @param string $StepName
* @param string $StepTitle
* @param string $SetupStepPage
*/
public function __construct($Namespace, $StepId, $StepName, $StepTitle, $SetupStepPage)
{
$this->Namespace = $Namespace;
$this->StepId = $StepId;
$this->StepName = $StepName;
$this->StepTitle = $StepTitle;
$this->SetupStepPage = $SetupStepPage;
}
/**
* Get name of plugin
* @return string
*/
public function getNamespace()
{
return $this->Namespace;
}
/**
* Get step id
* @return string
*/
public function getStepId()
{
return $this->StepId;
}
/**
* Get step Title
* @return string
*/
public function getStepTitle()
{
return $this->StepTitle;
}
/**
* Get step name
* @return string
*/
public function getStepName()
{
return $this->StepName;
}
/**
* Get setup step page
* @return string
*/
public function getSetupStepPage()
{
return $this->SetupStepPage;
}
/**
* Check if step id is equal to params
* @param string $StepId
* @return bool
*/
public function equalStepIdTo($StepId)
{
return $StepId == $this->StepId;
}
/**
* Check if name of plugin is equal to params
* @param string $Namespace
* @return bool
*/
public function equalNamespaceTo($Namespace)
{
return $Namespace == $this->Namespace;
}
}
|