Skip to content

Commit

Permalink
Provide ObjectsCommand#setObject() for compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Al2Klimov committed Jul 28, 2023
1 parent 36e9706 commit d234f83
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions library/Icingadb/Command/Object/ObjectsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,20 @@ public function setObjects(Traversable $objects): self
return $this;
}

/**
* Set the involved object
*
* @param Model $object
*
* @return $this
*
* @deprecated Use setObjects() instead
*/
public function setObject(Model $object): self
{
return $this->setObjects([$object]);
}

/**
* Get the involved objects
*
Expand Down

0 comments on commit d234f83

Please sign in to comment.