for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace src\pdodatabase\consultas\select;
use PDOStatement;
use src\pdodatabase\ejecutar\EjecutarConsultaConDatos;
use src\pdodatabase\sentencias\select\SentenciaSelectWhereOrdenYLimite;
class ConsultaSelectWhereOrdenYLimite
{
private $_ejecutar;
private $_sentencia;
public function __construct(EjecutarConsultaConDatos $ejecutarConsultaSinDatos, SentenciaSelectWhereOrdenYLimite $SentenciaSelectWhereOrdenYLimite)
$this->_ejecutar = $ejecutarConsultaSinDatos;
$this->_sentencia = $SentenciaSelectWhereOrdenYLimite;
}
public function obtener(): PDOStatement
return $this->_ejecutar->query($this->_sentencia);