1009583793534501411a75c96f1b27e9eec6ae0f
[m6w6/pq-gateway] / lib / pq / Query / ExpressibleInterface.php
1 <?php
2
3 namespace pq\Query;
4
5 interface ExpressibleInterface
6 {
7 /**
8 * Get the contained value as string
9 * @return string
10 */
11 function __toString();
12
13 /**
14 * Test whether we are an expression
15 * @return bool
16 */
17 function isExpr();
18
19 /**
20 * Get the literal value or the expression
21 * @return mixed
22 */
23 function get();
24
25 /**
26 * Set the contained value
27 * @param mixed $data
28 * @return \pq\Query\ExpressibleInterface
29 */
30 function set($data);
31
32 /**
33 * Modify the data
34 * @param mixed $data
35 * @param string $op a specific operator
36 * @return \pq\Query\ExpressibleInterface
37 */
38 function mod($data, $op = null);
39
40 }