blob: 8cf8a9f13cfbcbe8fbf183a08f777032c5a0ef0a (
plain)
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.
*
* @package SqlParser
* @subpackage Components
*/
namespace SqlParser\Components;
use SqlParser\Component;
use SqlParser\Statements\SelectStatement;
/**
* `UNION` keyword builder.
*
* @category Keywords
* @package SqlParser
* @subpackage Components
* @author Dan Ungureanu <udan1107@gmail.com>
* @license http://opensource.org/licenses/GPL-2.0 GNU Public License
*/
class UnionKeyword extends Component
{
/**
* @param SelectStatement[] $component The component to be built.
*
* @return string
*/
public static function build($component)
{
return implode(' UNION ', $component);
}
}
|