mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2025-12-20 23:00:16 -05:00
29 lines
488 B
PHP
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());
|
|
}
|
|
}
|