mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2025-12-22 15:50:15 -05:00
31 lines
553 B
PHP
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());
|
|
}
|
|
}
|