for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace src\pdodatabase\elementos;
use Exception;
class Orden
{
private $_orden;
public function __construct(string $Orden)
$this->_orden = $this->setOrden($Orden);
}
public function parametro(): string
return $this->_orden;
private function setOrden(string $orden): string
if(empty($orden))
throw new Exception("La sentencia ORDEN BY no puede estar vacia");
return ' ORDER BY '.$orden;