mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2025-12-20 23:00:16 -05:00
16 lines
318 B
PHP
16 lines
318 B
PHP
<?php
|
|
|
|
namespace Icinga\Module\Businessprocess;
|
|
|
|
class NodeRemoveAction extends NodeAction
|
|
{
|
|
public function appliesTo(BusinessProcess $bp)
|
|
{
|
|
return $bp->hasNode($this->getNodeName());
|
|
}
|
|
|
|
public function applyTo(BusinessProcess $bp)
|
|
{
|
|
$bp->removeNode($this->getNodeName());
|
|
}
|
|
}
|