for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace src\pdodatabase\elementos;
class ODonde
{
private $_donde;
private $_primerDonde;
private $_segundoDonde;
public function __construct(Donde $Donde, Donde $SegundoDonde)
$this->_primerDonde = $Donde;
$this->_segundoDonde = $SegundoDonde;
$this->_donde = $this->setDonde();
}
public function donde(): string
return $this->_donde;
public function datos(): array
return array($this->_primerDonde->datos()[0],$this->_segundoDonde->datos()[0]);
private function setDonde(): string
return ' WHERE '.$this->_primerDonde->donde().' OR '.$this->_segundoDonde->donde();