예제 #1
0
 public function configurar_respuesta(respuesta_rest $rta)
 {
     $datos = array('error' => $this->code, 'mensaje' => $rta->getMessageForCode($this->code), 'descripcion' => $this->getMessage());
     if (!empty($this->detalle)) {
         $datos['detalle'] = $this->detalle;
     }
     $rta->set_data($datos);
     $rta->set_status($this->code);
     return $this;
 }