PluginProbe
Auto Alt Text / 3.0.3
Auto Alt Text v3.0.3
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 / RequiresAuthentication.php

RequiresAuthentication.php in Auto Alt Text 3.0.3, at src/App/AIProviders/Contracts/RequiresAuthentication.php

30 lines 809 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 require API key authentication.
7 *
8 * Following the Interface Segregation Principle, this interface defines
9 * only the methods related to authentication validation.
10 */
11 interface RequiresAuthentication
12 {
13 /**
14 * Validate that the provider has valid credentials configured.
15 *
16 * This method checks if the API key and any other required
17 * credentials are present and properly formatted.
18 *
19 * @return bool True if credentials are valid, false otherwise
20 */
21 public function validateCredentials(): bool;
22
23 /**
24 * Check if the provider has an API key configured.
25 *
26 * @return bool True if API key is set, false otherwise
27 */
28 public function hasApiKey(): bool;
29 }
30