X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fpq-gateway;a=blobdiff_plain;f=lib%2Fpq%2FQuery%2FWriterInterface.php;h=72c5f15033aa5095300eb1f5ab0ddc8b32d32eea;hp=35b6c48357e4c31799bb7e0910ba9fdec7a71e35;hb=51f1ba99cc3bd04f06db34c145952494779a6e48;hpb=ccdcd2977c8bdc7c74b89b2fb7c2ea46479692b8 diff --git a/lib/pq/Query/WriterInterface.php b/lib/pq/Query/WriterInterface.php index 35b6c48..72c5f15 100644 --- a/lib/pq/Query/WriterInterface.php +++ b/lib/pq/Query/WriterInterface.php @@ -22,17 +22,20 @@ interface WriterInterface /** * Returns a list any types associated with the params + * @return array */ function getTypes(); /** * Reset the state of the query writer + * @return \pq\Query\WriterInterface */ function reset(); /** * Write plain SQL to the query - * @param mixed $arg variable list of arguments, arrays will be imploded to a comm separated list + * @param mixed $arg variable list of arguments, arrays will be imploded to a comma separated list + * @return \pq\Query\WriterInterface */ function write(/*...*/); @@ -40,6 +43,7 @@ interface WriterInterface * Remember the parameter with any associated type and return $N to be written to the query string * @param mixed $param a literal parameter, a \pq\Gateway\Table\Cell or a \pq\Query\Expr * @param int $type the oid of the type of the param + * @return \pq\Query\WriterInterface */ function param($param, $type = null);