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\Modules\Comments\Application\Service;
8
9defined('AMMONLY_APP') || exit('Direct script access is forbidden.');
10
11/**
12 * Interface for CommentHierarchyRollupService.
13 *
14 * @package App\Modules\Comments\Application\Service
15 */
16interface CommentHierarchyRollupServiceInterface
17{
18    /**
19     * Resolves upward hierarchy references based on target module and record ID.
20     *
21     * @param string $module   Target module name.
22     * @param int    $recordId Target record ID.
23     * @return array{
24     *     related_party_ref: string|null,
25     *     company_id: int|null,
26     *     partner_id: int|null,
27     *     contact_id: int|null,
28     *     process_ref: string|null,
29     *     project_id: int|null,
30     *     contract_id: int|null,
31     *     subprocess_ref: string|null,
32     *     ticket_id: int|null,
33     *     task_id: int|null,
34     *     stage_id: int|null
35     * }
36     */
37    public function resolveHierarchy(string $module, int $recordId): array;
38}