monitoring: Optimize method order in the DeleteCommentCommand

This commit is contained in:
Eric Lippmann 2015-08-21 10:33:18 +02:00
parent f7630b98a9
commit f722e242fd

View File

@ -18,12 +18,22 @@ class DeleteCommentCommand extends IcingaCommand
protected $commentId; protected $commentId;
/** /**
* The type of the comment, either 'host' or 'service' * Whether the command affects a service comment
* *
* @var boolean * @var boolean
*/ */
protected $isService = false; protected $isService = false;
/**
* Get the ID of the comment that is to be deleted
*
* @return int
*/
public function getCommentId()
{
return $this->commentId;
}
/** /**
* Set the ID of the comment that is to be deleted * Set the ID of the comment that is to be deleted
* *
@ -38,17 +48,7 @@ class DeleteCommentCommand extends IcingaCommand
} }
/** /**
* Get the ID of the comment that is to be deleted * Get whether the command affects a service comment
*
* @return int
*/
public function getCommentId()
{
return $this->commentId;
}
/**
* Whether the command affects a service comment
* *
* @return boolean * @return boolean
*/ */
@ -58,7 +58,7 @@ class DeleteCommentCommand extends IcingaCommand
} }
/** /**
* Set whether the command affects a service * Set whether the command affects a service comment
* *
* @param bool $isService * @param bool $isService
* *