1717 * @version GIT: <git-id>
1818 *
1919 * @link https://OpenRegister.app
20+ *
21+ * @spec openspec/changes/retrofit-annotate-openregister-2026-04-23/tasks.md#task-8
2022 */
2123
2224namespace OCA \OpenRegister \Controller ;
@@ -67,6 +69,8 @@ public function __construct(
6769 *
6870 * @SuppressWarnings(PHPMD.NPathComplexity) Request parameter extraction requires many conditional checks
6971 * @SuppressWarnings(PHPMD.CyclomaticComplexity)
72+ *
73+ * @spec openspec/changes/retrofit-annotate-openregister-2026-04-23/tasks.md#task-8
7074 */
7175 private function extractRequestParameters (): array
7276 {
@@ -180,6 +184,8 @@ function ($key) {
180184 * array{results: array<\OCA\OpenRegister\Db\AuditTrail>,
181185 * total: int<0, max>, page: int|null, pages: float, limit: int,
182186 * offset: int|null}, array<never, never>>
187+ *
188+ * @spec openspec/changes/retrofit-annotate-openregister-2026-04-23/tasks.md#task-8
183189 */
184190 public function index (): JSONResponse
185191 {
@@ -225,6 +231,8 @@ public function index(): JSONResponse
225231 * array{error: 'Audit trail not found'},
226232 * array<never, never>
227233 * >
234+ *
235+ * @spec openspec/changes/retrofit-annotate-openregister-2026-04-23/tasks.md#task-8
228236 */
229237 public function show (int $ id ): JSONResponse
230238 {
@@ -247,6 +255,8 @@ public function show(int $id): JSONResponse
247255 * @NoCSRFRequired
248256 *
249257 * @SuppressWarnings(PHPMD.UnusedFormalParameter)
258+ *
259+ * @spec openspec/changes/retrofit-annotate-openregister-2026-04-23/tasks.md#task-8
250260 */
251261 public function update (int $ id ): JSONResponse
252262 {
@@ -274,6 +284,8 @@ public function update(int $id): JSONResponse
274284 * results?: array<\OCA\OpenRegister\Db\AuditTrail>,
275285 * total?: int<0, max>, page?: int|null, pages?: float, limit?: int,
276286 * offset?: int|null}, array<never, never>>
287+ *
288+ * @spec openspec/changes/retrofit-annotate-openregister-2026-04-23/tasks.md#task-8
277289 */
278290 public function objects (string $ register , string $ schema , string $ id ): JSONResponse
279291 {
@@ -318,6 +330,8 @@ public function objects(string $register, string $schema, string $id): JSONRespo
318330 * @NoCSRFRequired
319331 *
320332 * @return JSONResponse JSON response with export data or error
333+ *
334+ * @spec openspec/changes/retrofit-annotate-openregister-2026-04-23/tasks.md#task-8
321335 */
322336 public function export (): JSONResponse
323337 {
@@ -387,6 +401,8 @@ public function export(): JSONResponse
387401 * @NoCSRFRequired
388402 *
389403 * @SuppressWarnings(PHPMD.UnusedFormalParameter)
404+ *
405+ * @spec openspec/changes/retrofit-annotate-openregister-2026-04-23/tasks.md#task-8
390406 */
391407 public function destroy (int $ id ): JSONResponse
392408 {
@@ -404,6 +420,8 @@ public function destroy(int $id): JSONResponse
404420 * @NoCSRFRequired
405421 *
406422 * @return JSONResponse JSON response with deletion results or error
423+ *
424+ * @spec openspec/changes/retrofit-annotate-openregister-2026-04-23/tasks.md#task-8
407425 */
408426 public function destroyMultiple (): JSONResponse
409427 {
@@ -462,6 +480,8 @@ public function destroyMultiple(): JSONResponse
462480 * @NoCSRFRequired
463481 *
464482 * @return JSONResponse JSON response confirming clear or error
483+ *
484+ * @spec openspec/changes/retrofit-annotate-openregister-2026-04-23/tasks.md#task-8
465485 */
466486 public function clearAll (): JSONResponse
467487 {
@@ -506,6 +526,8 @@ public function clearAll(): JSONResponse
506526 * @NoCSRFRequired
507527 *
508528 * @return JSONResponse Verification result with valid/invalid status
529+ *
530+ * @spec openspec/changes/retrofit-annotate-openregister-2026-04-23/tasks.md#task-8
509531 */
510532 public function verify (): JSONResponse
511533 {
@@ -538,6 +560,8 @@ public function verify(): JSONResponse
538560 * @return JSONResponse List of processing activities
539561 *
540562 * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
563+ *
564+ * @spec openspec/changes/retrofit-annotate-openregister-2026-04-23/tasks.md#task-8
541565 */
542566 public function verwerkingsregister (): JSONResponse
543567 {
@@ -564,6 +588,8 @@ public function verwerkingsregister(): JSONResponse
564588 * @NoCSRFRequired
565589 *
566590 * @return JSONResponse Matching audit trail entries grouped by schema
591+ *
592+ * @spec openspec/changes/retrofit-annotate-openregister-2026-04-23/tasks.md#task-8
567593 */
568594 public function inzageverzoek (): JSONResponse
569595 {
0 commit comments