1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
<?php
/** * `UNION` keyword builder. */
namespace PhpMyAdmin\SqlParser\Components;
use PhpMyAdmin\SqlParser\Component;
/** * `UNION` keyword builder. * * @category Keywords * * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ */ class UnionKeyword extends Component { /** * @param UnionKeyword[] $component the component to be built * @param array $options parameters for building * * @return string */ public static function build($component, array $options = array()) { $tmp = array(); foreach ($component as $component) { $tmp[] = $component[0] . ' ' . $component[1]; }
return implode(' ', $tmp); } }
|