public function poll() { $this->handled_items++; if (!parent::poll()) { throw new RunQueueOutOfWorkException(); } return true; }