for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace src\pdodatabase\elementos;
use src\interfaces\SentenciaDeComparacionInterface;
use src\interfaces\UnidadDeValorInterface;
class SentenciaDeComparacionColumnaValorValor implements SentenciaDeComparacionInterface
{
private $_primerValor;
private $_segundoValor;
private $_tercerValor;
public function __construct
(
UnidadDeValorInterface $UnidadDeValorInterface1,
UnidadDeValorInterface $UnidadDeValorInterface2,
UnidadDeValorInterface $UnidadDeValorInterface3
)
$this->_primerValor = $UnidadDeValorInterface1;
$this->_segundoValor = $UnidadDeValorInterface2;
$this->_tercerValor = $UnidadDeValorInterface3;
}
public function sql(): string
return $this->_primerValor->valor().' BETWEEN ? AND ?';
public function datos(): array
return [$this->_segundoValor->valor(),$this->_tercerValor->valor()];