X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fpq-gateway;a=blobdiff_plain;f=lib%2Fpq%2FQuery%2FExecutorInterface.php;h=f3bc0be971b89d3c19092b98066f88c0cd7c3d3f;hp=141ac230aa0077ced9c15eb2fe1eecf49acd9507;hb=HEAD;hpb=dc87da9c4ec52918e34f2e43eac3014f0f99a8bc diff --git a/lib/pq/Query/ExecutorInterface.php b/lib/pq/Query/ExecutorInterface.php index 141ac23..f3bc0be 100644 --- a/lib/pq/Query/ExecutorInterface.php +++ b/lib/pq/Query/ExecutorInterface.php @@ -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 \pq\Query\WriterInterface + */ + function getQuery(); + + /** + * @return \pq\Result + */ + function getResult(); + }