Estado Recepcion Final en Proyecto
This commit is contained in:
@ -50,4 +50,17 @@ class EstadosProyectos
|
||||
}
|
||||
return $this->withJson($response, $output);
|
||||
}
|
||||
public function recepcionByProyecto(ServerRequestInterface $request, ResponseInterface $response, Repository\Proyecto\EstadoProyecto $estadoProyectoRepository, int $proyecto_id): ResponseInterface
|
||||
{
|
||||
$output = [
|
||||
'proyecto_id' => $proyecto_id,
|
||||
'estado' => null
|
||||
];
|
||||
try {
|
||||
$output['estado'] = $estadoProyectoRepository->fetchRecepcionByProyecto($proyecto_id);
|
||||
} catch (EmptyResult) {
|
||||
return $this->emptyBody($response);
|
||||
}
|
||||
return $this->withJson($response, $output);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user