| 1 |
<?php |
| 2 |
|
| 3 |
namespace AATXT\App\AIProviders\Contracts; |
| 4 |
|
| 5 |
/** |
| 6 |
* Interface for AI providers that support image MIME type validation. |
| 7 |
* |
| 8 |
* Following the Interface Segregation Principle, this interface defines |
| 9 |
* only the methods related to image validation, separate from the main |
| 10 |
* AIProviderInterface. |
| 11 |
*/ |
| 12 |
interface SupportsImageValidation |
| 13 |
{ |
| 14 |
/** |
| 15 |
* Get the list of supported MIME types for this provider. |
| 16 |
* |
| 17 |
* @return array<string> List of supported MIME types (e.g., ['image/jpeg', 'image/png']) |
| 18 |
*/ |
| 19 |
public function getSupportedMimeTypes(): array; |
| 20 |
|
| 21 |
/** |
| 22 |
* Check if a specific MIME type is supported by this provider. |
| 23 |
* |
| 24 |
* @param string $mimeType The MIME type to check |
| 25 |
* @return bool True if supported, false otherwise |
| 26 |
*/ |
| 27 |
public function supportsImage(string $mimeType): bool; |
| 28 |
} |
| 29 |
|