Skip to content

Commit

Permalink
Add queue monitor deletion method
Browse files Browse the repository at this point in the history
  • Loading branch information
romanzipp committed Aug 16, 2018
1 parent b2f4006 commit 897cb2a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Traits/QueueMonitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,17 @@ public function queueData(array $data): void
]);
}

/**
* Delete Queue Monitor object
* @return void
*/
protected function deleteQueueMonitor(): void
{
if ($monitor = $this->getQueueMonitor()) {
$monitor->delete();
}
}

/**
* Return Queue Monitor Model
* @return Monitor|null
Expand Down

0 comments on commit 897cb2a

Please sign in to comment.