| 1: | <?php |
| 2: | |
| 3: | declare(strict_types=1); |
| 4: | |
| 5: | namespace LaravelUi5\OData\Service\Contracts; |
| 6: | |
| 7: | /** |
| 8: | * Resolves a singleton to its single entity instance. |
| 9: | * |
| 10: | * Implementations return the singleton's current state as an associative |
| 11: | * array. The singleton is always a single entity — no collection, no key. |
| 12: | */ |
| 13: | interface SingletonResolverInterface |
| 14: | { |
| 15: | /** |
| 16: | * @return array<string, mixed> The singleton entity as an associative array. |
| 17: | */ |
| 18: | public function resolve(): array; |
| 19: | } |
| 20: |