Sindbad~EG File Manager

Current Path : /var/www/html/pma/vendor/phpmyadmin/sql-parser/src/Components/
Upload File :
Current File : /var/www/html/pma/vendor/phpmyadmin/sql-parser/src/Components/UnionKeyword.php

<?php

declare(strict_types=1);

namespace PhpMyAdmin\SqlParser\Components;

use PhpMyAdmin\SqlParser\Component;

use function implode;

/**
 * `UNION` keyword builder.
 *
 * @final
 */
class UnionKeyword extends Component
{
    /**
     * @param array<UnionKeyword[]> $component the component to be built
     * @param array<string, mixed>  $options   parameters for building
     *
     * @return string
     */
    public static function build($component, array $options = [])
    {
        $tmp = [];
        foreach ($component as $componentPart) {
            $tmp[] = $componentPart[0] . ' ' . $componentPart[1];
        }

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

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists