Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | /** @license For full copyright and license information, please see the LICENSE.md file. */ |
| 6 | |
| 7 | namespace App\Core\Instance\Domain\Repository; |
| 8 | |
| 9 | defined('AMMONLY_APP') || exit('Direct script access is forbidden.'); |
| 10 | |
| 11 | use App\Core\Instance\Domain\Model\ClientInstance; |
| 12 | |
| 13 | /** |
| 14 | * Client Instance Repository Interface Contract. |
| 15 | * |
| 16 | * @package App\Core\Instance\Domain\Repository |
| 17 | */ |
| 18 | interface ClientInstanceRepositoryInterface |
| 19 | { |
| 20 | /** |
| 21 | * Finds a single active client instance by its ID. |
| 22 | * |
| 23 | * @param int $id Instance ID. |
| 24 | * @return ClientInstance|null Found instance or null. |
| 25 | */ |
| 26 | public function findById(int $id): ?ClientInstance; |
| 27 | |
| 28 | /** |
| 29 | * Returns all active client instances for context selection. |
| 30 | * |
| 31 | * @return list<ClientInstance> List of client instances. |
| 32 | */ |
| 33 | public function findAllActive(): array; |
| 34 | } |