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