monitoring: Optimize method order in the DeleteDowntimesCommandForm
This commit is contained in:
parent
fbb16e5ea2
commit
5b143ce205
|
@ -13,7 +13,7 @@ use Icinga\Web\Notification;
|
||||||
class DeleteDowntimesCommandForm extends CommandForm
|
class DeleteDowntimesCommandForm extends CommandForm
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* The downtimes to delete on success
|
* The downtimes to delete
|
||||||
*
|
*
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
|
@ -27,6 +27,19 @@ class DeleteDowntimesCommandForm extends CommandForm
|
||||||
$this->setAttrib('class', 'inline');
|
$this->setAttrib('class', 'inline');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the downtimes to delete
|
||||||
|
*
|
||||||
|
* @param array $downtimes
|
||||||
|
*
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setDowntimes(array $downtimes)
|
||||||
|
{
|
||||||
|
$this->downtimes = $downtimes;
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
@ -71,17 +84,4 @@ class DeleteDowntimesCommandForm extends CommandForm
|
||||||
);
|
);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Set the downtimes to be deleted upon success
|
|
||||||
*
|
|
||||||
* @param array $downtimes
|
|
||||||
*
|
|
||||||
* @return $this
|
|
||||||
*/
|
|
||||||
public function setDowntimes(array $downtimes)
|
|
||||||
{
|
|
||||||
$this->downtimes = $downtimes;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue