30 lines
628 B
PHP
30 lines
628 B
PHP
<?php
|
|
/**
|
|
* Author: Nil Portugués Calderó <contact@nilportugues.com>
|
|
* Date: 9/12/14
|
|
* Time: 7:15 PM.
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace NilPortugues\Sql\QueryBuilder\Builder\Syntax;
|
|
|
|
use NilPortugues\Sql\QueryBuilder\Manipulation\Union;
|
|
|
|
/**
|
|
* Class UnionWriter.
|
|
*/
|
|
class UnionWriter extends AbstractSetWriter
|
|
{
|
|
/**
|
|
* @param Union $union
|
|
*
|
|
* @return string
|
|
*/
|
|
public function write(Union $union)
|
|
{
|
|
return $this->abstractWrite($union, 'getUnions', Union::UNION);
|
|
}
|
|
}
|