for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace mindplay\sql\model\query;
use mindplay\sql\framework\MapperProvider;
use mindplay\sql\model\components\Mappers;
use mindplay\sql\model\TypeProvider;
/**
* This class represents a custom SQL Query.
*/
class SQLQuery extends Query implements MapperProvider
{
use Mappers;
* @var string
private $sql;
* @param TypeProvider $types
* @param string $sql SQL statement (with placeholders)
public function __construct(TypeProvider $types, $sql)
parent::__construct($types);
$this->sql = $sql;
}
* @inheritdoc
public function getSQL()
return $this->sql;
public function getMappers()
return $this->mappers;