for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Author: Nil Portugués Calderó <[email protected]>
* Date: 12/24/14
* Time: 12:30 PM.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace NilPortugues\Sql\QueryBuilder\Manipulation;
* Class AbstractCreationalQuery.
abstract class AbstractCreationalQuery extends AbstractBaseQuery
{
* @var array
protected $values = [];
* @param string $table
* @param array $values
public function __construct($table = null, array $values = null)
if (isset($table)) {
$this->setTable($table);
}
if (!empty($values)) {
$this->setValues($values);
* @return array
public function getValues()
return $this->values;
* @return $this
public function setValues(array $values)
$this->values = \array_filter($values);
return $this;