1 | <?php |
||
20 | class InsertWriter |
||
21 | { |
||
22 | /** |
||
23 | * @var GenericBuilder |
||
24 | */ |
||
25 | private $writer; |
||
26 | |||
27 | /** |
||
28 | * @var ColumnWriter |
||
29 | */ |
||
30 | private $columnWriter; |
||
31 | |||
32 | /** |
||
33 | * @param GenericBuilder $writer |
||
34 | * @param PlaceholderWriter $placeholder |
||
35 | */ |
||
36 | public function __construct(GenericBuilder $writer, PlaceholderWriter $placeholder) |
||
41 | |||
42 | /** |
||
43 | * @param Insert $insert |
||
44 | * |
||
45 | * @throws QueryException |
||
46 | * |
||
47 | * @return string |
||
48 | */ |
||
49 | public function write(Insert $insert) |
||
64 | |||
65 | /** |
||
66 | * @param $columns |
||
67 | * |
||
68 | * @return string |
||
69 | */ |
||
70 | protected function writeQueryColumns($columns) |
||
74 | |||
75 | /** |
||
76 | * @param $collection |
||
77 | * @param $writer |
||
78 | * @param string $method |
||
79 | * |
||
80 | * @return string |
||
81 | */ |
||
82 | protected function writeCommaSeparatedValues($collection, $writer, $method) |
||
93 | |||
94 | /** |
||
95 | * @param $values |
||
96 | * |
||
97 | * @return string |
||
98 | */ |
||
99 | protected function writeQueryValues($values) |
||
103 | } |
||
104 |