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