Esempio n. 1
0
 /**
  * Commits a result into the output stream
  *
  * @internal Do <strong>not</strong> use this method outside this thread!
  *
  * @param QueryResult $result
  */
 public function pushResult(QueryResult $result)
 {
     if (Thread::getCurrentThreadId() !== $this->myId) {
         throw new \InvalidStateException("Attempt to call a thread-private method " . __METHOD__);
     }
     $this->output[] = $result;
 }