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 DataMappingRepositoryInterface
12{
13    /**
14     * Finds mapping rules by source and target modules.
15     *
16     * @param int $sourceModuleId
17     * @param int $targetModuleId
18     * @return array<string, mixed>|null
19     */
20    public function findMapping(int $sourceModuleId, int $targetModuleId): ?array;
21
22    /**
23     * Finds all mapping configurations.
24     *
25     * @return array<int, array<string, mixed>>
26     */
27    public function findAll(): array;
28
29    /**
30     * Saves mapping configuration.
31     *
32     * @param array<string, mixed> $data
33     * @return int
34     */
35    public function save(array $data): int;
36}