mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-25 18:59:04 +02:00
Remove ModuleDashlet trait
This commit is contained in:
parent
90c0633354
commit
0f562ab27e
@ -1,70 +0,0 @@
|
||||
<?php
|
||||
|
||||
/* Icinga Web 2 | (c) 2022 Icinga GmbH | GPLv2+ */
|
||||
|
||||
namespace Icinga\Web\Dashboard\Common;
|
||||
|
||||
trait ModuleDashlet
|
||||
{
|
||||
/**
|
||||
* A flag to identify whether this dashlet widget originates from a module
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
private $moduleDashlet = false;
|
||||
|
||||
/**
|
||||
* The name of the module this dashlet comes from
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
private $module;
|
||||
|
||||
/**
|
||||
* Get the name of the module which provides this dashlet
|
||||
*
|
||||
* @return ?string
|
||||
*/
|
||||
public function getModule()
|
||||
{
|
||||
return $this->module;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the name of the module which provides this dashlet
|
||||
*
|
||||
* @param string $module
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setModule(string $module): self
|
||||
{
|
||||
$this->module = $module;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get whether this widget originates from a module
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isModuleDashlet(): bool
|
||||
{
|
||||
return $this->moduleDashlet;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set whether this dashlet widget is provided by a module
|
||||
*
|
||||
* @param bool $moduleDashlet
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setModuleDashlet(bool $moduleDashlet): self
|
||||
{
|
||||
$this->moduleDashlet = $moduleDashlet;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user