monitoring: Optimize method order in the DeleteDowntimesCommandForm

This commit is contained in:
Eric Lippmann 2015-08-21 10:30:55 +02:00
parent fbb16e5ea2
commit 5b143ce205
1 changed files with 14 additions and 14 deletions

View File

@ -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;
}
} }