for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace src\pdodatabase\elementos;
use src\interfaces\ValidadorDeParametrosInterface;
use src\interfaces\WhereInterface;
class Where implements WhereInterface
{
public function __construct(ValidadorDeParametrosInterface $ValidadorDeParametrosInterface)
$this->_where = $ValidadorDeParametrosInterface->datos();
_where
}
public function sql(): string
return 'WHERE '.$this->_where[0].' '.$this->_where[1].' ?';
public function datos(): array
return [$this->_where[2]];