Spaces:
Sleeping
Sleeping
File size: 2,300 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 116 117 118 119 120 121 122 123 124 125 126 127 | <?php
namespace ProcessMaker\Plugins\Interfaces;
use ProcessMaker\Plugins\Traits\Attributes;
/**
* Class DashboardPage
* @package ProcessMaker\Plugins\Interfaces
*/
class DashboardPage
{
use Attributes;
private $Namespace;
private $Page;
private $Name;
private $Icon;
/**
* This function is the constructor of the DashboardPage class
* @param string $Namespace
* @param string $Page
* @param string $Name
* @param string $Icon
*/
public function __construct($Namespace, $Page, $Name, $Icon)
{
$this->Namespace = $Namespace;
$this->Page = $Page;
$this->Name = $Name;
$this->Icon = $Icon;
}
/**
* Get name of plugin
* @return string
*/
public function getNamespace()
{
return $this->Namespace;
}
/**
* Set name of plugin
* @param string $Namespace
*/
public function setNamespace($Namespace)
{
$this->Namespace = $Namespace;
}
/**
* Get page of Dashboard
* @return string
*/
public function getPage()
{
return $this->Page;
}
/**
* Set page of Dashboard
* @param string $Page
*/
public function setPage($Page)
{
$this->Page = $Page;
}
/**
* Get name of Dashboard
* @return string
*/
public function getName()
{
return $this->Name;
}
/**
* Set name of Dashboard
* @param string $Name
*/
public function setName($Name)
{
$this->Name = $Name;
}
/**
* Get icon of Dashboard
* @return string
*/
public function getIcon()
{
return $this->Icon;
}
/**
* Set icon of Dashboard
* @param string $Icon
*/
public function setIcon($Icon)
{
$this->Icon = $Icon;
}
/**
* Check if name plugin is equal to params
* @param string $Namespace
* @return bool
*/
public function equalNamespaceTo($Namespace)
{
return $Namespace == $this->Namespace;
}
/**
* Check if dashboard page is equal to params
* @param string $Page
* @return bool
*/
public function equalPageTo($Page)
{
return $Page == $this->Page;
}
}
|