for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author Jared King <[email protected]>
*
* @see http://jaredtking.com
* @copyright 2015 Jared King
* @license MIT
*/
namespace JAQB\Query;
use JAQB\Operations\Executable;
use JAQB\Operations\Fetchable;
class SqlQuery extends AbstractQuery
{
use Executable;
use Fetchable;
* @var string
protected $sql;
* Sets the SQL for the query.
* @param string $sql
* @return self
public function raw($sql)
$this->sql = $sql;
return $this;
}
* Sets the parameters for this query to be injected
* into the prepared statement.
public function parameters(array $values)
$this->values = $values;
public function build()
return $this->sql;