icingaweb2-module-businessp.../library/Businessprocess/Modification/NodeRemoveAction.php
Thomas Gelf 2b98629f3e Modification: move modification handling to...
...a dedicated namespace
2016-11-23 15:17:25 +01:00

31 lines
553 B
PHP

<?php
namespace Icinga\Module\Businessprocess\Modification;
use Icinga\Module\Businessprocess\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());
}
}