monitoring: Optimize method order in the DeleteCommentsCommandForm

This commit is contained in:
Eric Lippmann 2015-08-21 10:32:16 +02:00
parent 15cf5a9724
commit f7630b98a9
1 changed files with 14 additions and 14 deletions

View File

@ -13,7 +13,7 @@ use Icinga\Web\Notification;
class DeleteCommentsCommandForm extends CommandForm
{
/**
* The comments deleted on success
* The comments to delete
*
* @var array
*/
@ -27,6 +27,19 @@ class DeleteCommentsCommandForm extends CommandForm
$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}
*/
@ -71,17 +84,4 @@ class DeleteCommentsCommandForm extends CommandForm
);
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;
}
}