2. srv / modelo / validaId.php

1<?php
2
3function validaId(string $id)
4{
5 if ($id === "")
6 throw new ProblemDetails(
7 status: BAD_REQUEST,
8 title: "Falta el id.",
9 type: "/error/faltaid.html",
10 );
11}
12
skip_previous skip_next