add identity and lock
[m6w6/pq-gateway] / lib / pq / Query / ExecutorInterface.php
index 141ac230aa0077ced9c15eb2fe1eecf49acd9507..906404f0e0b13b06a494450b34feda053fe5a83c 100644 (file)
@@ -4,8 +4,9 @@ namespace pq\Query;
 
 /**
  * An executor of \pq\Query\Writer queries
+ * @codeCoverageIgnore
  */
-interface ExecutorInterface
+interface ExecutorInterface extends \SplSubject
 {
        /**
         * Get the connection
@@ -27,4 +28,15 @@ interface ExecutorInterface
         * @return mixed the result of the callback
         */
        function execute(WriterInterface $query, callable $callback);
+       
+       /**
+        * @return WriterInterface
+        */
+       function getQuery();
+       
+       /**
+        * @return \pq\Result
+        */
+       function getResult();
+       
 }