PluginProbe
Auto Alt Text / 2.8.1
Auto Alt Text v2.8.1
3.0.3 2.8.2 1.3.1 1.3.2 2.0.0 2.1.0 2.1.1 2.2.0 2.3.0 2.3.1 2.3.2 2.3.3 2.3.4 2.4.0 2.4.1 2.4.2 2.5.0 2.5.1 2.5.2 2.5.3 2.6.0 2.6.1 2.7.0 2.8.0 2.8.1 All 28 releases
auto-alt-text / src / App / AIProviders / Contracts / SupportsImageValidation.php

SupportsImageValidation.php in Auto Alt Text 2.8.1, at src/App/AIProviders/Contracts/SupportsImageValidation.php

29 lines 832 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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