Merge pull request #4050 from Icinga/bugfix/iterable-for-delete-comments-and-downtimes-command-forms
Allow iterable for delete comments and downtimes command forms
This commit is contained in:
commit
9ffaa05e4e
|
@ -30,11 +30,11 @@ class DeleteCommentsCommandForm extends CommandForm
|
|||
/**
|
||||
* Set the comments to delete
|
||||
*
|
||||
* @param array $comments
|
||||
* @param iterable $comments
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setComments(array $comments)
|
||||
public function setComments($comments)
|
||||
{
|
||||
$this->comments = $comments;
|
||||
return $this;
|
||||
|
|
|
@ -30,11 +30,11 @@ class DeleteDowntimesCommandForm extends CommandForm
|
|||
/**
|
||||
* Set the downtimes to delete
|
||||
*
|
||||
* @param array $downtimes
|
||||
* @param iterable $downtimes
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setDowntimes(array $downtimes)
|
||||
public function setDowntimes($downtimes)
|
||||
{
|
||||
$this->downtimes = $downtimes;
|
||||
return $this;
|
||||
|
|
Loading…
Reference in New Issue