public function stop() { // load the queue keys $queues = get_object_vars($this->getQueues()); // iterate over the queues and shut them down /** @var AppserverIo\Psr\Pms\QueueInterface $queue */ foreach ($queues as $queue) { $queue->stop(); } }