mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
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
|
* Set the comments to delete
|
||||||
*
|
*
|
||||||
* @param array $comments
|
* @param iterable $comments
|
||||||
*
|
*
|
||||||
* @return $this
|
* @return $this
|
||||||
*/
|
*/
|
||||||
public function setComments(array $comments)
|
public function setComments($comments)
|
||||||
{
|
{
|
||||||
$this->comments = $comments;
|
$this->comments = $comments;
|
||||||
return $this;
|
return $this;
|
||||||
|
@ -30,11 +30,11 @@ class DeleteDowntimesCommandForm extends CommandForm
|
|||||||
/**
|
/**
|
||||||
* Set the downtimes to delete
|
* Set the downtimes to delete
|
||||||
*
|
*
|
||||||
* @param array $downtimes
|
* @param iterable $downtimes
|
||||||
*
|
*
|
||||||
* @return $this
|
* @return $this
|
||||||
*/
|
*/
|
||||||
public function setDowntimes(array $downtimes)
|
public function setDowntimes($downtimes)
|
||||||
{
|
{
|
||||||
$this->downtimes = $downtimes;
|
$this->downtimes = $downtimes;
|
||||||
return $this;
|
return $this;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user