1 | <?php |
||
12 | trait Returning |
||
13 | { |
||
14 | use Mappers; |
||
15 | |||
16 | /** |
||
17 | * @var ReturnVars |
||
18 | */ |
||
19 | protected $return_vars; |
||
20 | |||
21 | /** |
||
22 | * Add all the Columns of a full Table to be selected and returned |
||
23 | * |
||
24 | * @param Table $table Table to select and return |
||
25 | * |
||
26 | * @return $this |
||
27 | */ |
||
28 | public function returningTable(Table $table) |
||
34 | |||
35 | /** |
||
36 | * Add one or more Columns to select and return |
||
37 | * |
||
38 | * @param Column|Column[] $cols one or more Columns to select and return |
||
39 | * |
||
40 | * @return $this |
||
41 | */ |
||
42 | 1 | public function returningColumns($cols) |
|
48 | |||
49 | /** |
||
50 | * Add an SQL expression to select and return |
||
51 | * |
||
52 | * @param string $expr return expression |
||
53 | * @param string|null $name return variable name (optional, but usually required) |
||
54 | * @param Type|string|null $type optional Type (or Type class-name) |
||
55 | * |
||
56 | * @return $this |
||
57 | */ |
||
58 | public function returningValue($expr, $name = null, $type = null) |
||
64 | |||
65 | /** |
||
66 | * @inheritdoc |
||
67 | */ |
||
68 | 1 | public function getMappers() |
|
72 | |||
73 | /** |
||
74 | * @inheritdoc |
||
75 | */ |
||
76 | public function getIndexer() |
||
80 | } |
||
81 |