mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-21 04:44:25 +02:00
monitoring: Optimize method order in the DeleteCommentCommand
This commit is contained in:
parent
f7630b98a9
commit
f722e242fd
@ -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
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user