for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of UnderQuery package.
*
* Copyright (c) 2016 Beniamin Jonatan Šimko
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Phuria\UnderQuery\QueryBuilder;
* @author Beniamin Jonatan Šimko <[email protected]>
class InsertBuilder extends AbstractInsertBuilder
{
* @var array
private $values;
* @param array $values
* @return $this
public function addValues(array $values)
$valueReferences = [];
foreach ($values as $value) {
$valueReferences[] = $this->getReferences()->createReference($value);
}
$this->values[] = $valueReferences;
return $this;
* @return array
public function getValues()
return $this->values;