Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3declare(strict_types=1);
4/**
5 * SPDX-FileCopyrightText: 2026 LibreCode coop and contributors
6 * SPDX-License-Identifier: AGPL-3.0-or-later
7 */
8
9namespace OCA\Libresign\Service\Policy\Contract;
10
11use OCA\Libresign\Db\File as FileEntity;
12
13interface IFilePolicyApplier {
14    /** @param array<string, mixed> $data */
15    public function apply(FileEntity $file, array $data): void;
16
17    /** @param array<string, mixed> $data */
18    public function sync(FileEntity $file, array $data): void;
19
20    /**
21     * Core flow sync is used on the UUID update path where only core flow policies
22     * should trigger recomputation.
23     */
24    public function supportsCoreFlowSync(): bool;
25}