icingaweb2-module-businessp.../library/Businessprocess/NodeRemoveAction.php
2016-11-23 15:17:25 +01:00

29 lines
488 B
PHP

<?php
namespace Icinga\Module\Businessprocess;
/**
* NodeRemoveAction
*
* Tracks removed nodes
*
* @package Icinga\Module\Businessprocess
*/
class NodeRemoveAction extends NodeAction
{
/**
* @inheritdoc
*/
public function appliesTo(BusinessProcess $bp)
{
return $bp->hasNode($this->getNodeName());
}
/**
* @inheritdoc
*/
public function applyTo(BusinessProcess $bp)
{
$bp->removeNode($this->getNodeName());
}
}