Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
1 / 1
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3declare(strict_types=1);
4
5/** @license For full copyright and license information, please see the LICENSE.md file. */
6
7namespace App\Core\Engine\Domain\Repository;
8
9defined('AMMONLY_APP') || exit('Direct script access is forbidden.');
10
11interface InventoryFieldRepositoryInterface
12{
13    /**
14     * Finds all inventory fields configured for a given module.
15     *
16     * @param int $moduleId
17     * @return array<int, array<string, mixed>>
18     */
19    public function findByModule(int $moduleId): array;
20
21    /**
22     * Creates a new inventory field record.
23     *
24     * @param array<string, mixed> $data
25     * @return int
26     */
27    public function create(array $data): int;
28
29    /**
30     * Updates an inventory field record.
31     *
32     * @param int $id
33     * @param array<string, mixed> $data
34     * @return void
35     */
36    public function update(int $id, array $data): void;
37
38    /**
39     * Deletes an inventory field record.
40     *
41     * @param int $id
42     * @return void
43     */
44    public function delete(int $id): void;
45}