for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Phossa Project
*
* PHP version 5.4
* @category Library
* @package Phossa2\Query
* @copyright Copyright (c) 2016 phossa.com
* @license http://mit-license.org/ MIT License
* @link http://www.phossa.com/
*/
/*# declare(strict_types=1); */
namespace Phossa2\Query\Traits\Clause;
use Phossa2\Query\Interfaces\Clause\IntoInterface;
* IntoTrait
* Implementation of IntoInterface
* @author Hong Zhang <[email protected]>
* @see IntoInterface
* @version 2.0.0
* @since 2.0.0 added
trait IntoTrait
{
* {@inheritDoc}
public function into(/*# string */ $table)
$clause = &$this->getClause('INTO');
$clause[] = [$table, false];
return $this;
}
* Build INTO
* @param string $prefix
* @param array $settings
* @return string
* @access protected
protected function buildInto(
/*# string */ $prefix,
array $settings
)/*# : string */ {
return $this->buildClause('INTO', $prefix, $settings);
abstract protected function getType()/*# : string */;
abstract protected function &getClause(/*# string */ $clauseName)/*# : array */;
abstract protected function buildClause(
/*# string */ $clauseName,
/*# string */ $clausePrefix,
array $settings,
array $clauseParts = []
)/*# string */;