provider_id = $provider_id; $this->api_key = $api_key; $this->model = $model; } public function get_active_provider(): string { return $this->provider_id; } public function set_active_provider( string $provider_id ): bool { return true; } public function get_model( string $provider_id ): string { return $provider_id === $this->provider_id ? $this->model : ''; } public function get_api_key( string $provider_id ): string { return $provider_id === $this->provider_id ? $this->api_key : ''; } public function has_api_key( string $provider_id ): bool { return $provider_id === $this->provider_id && '' !== $this->api_key; } public function update_provider( string $provider_id, array $settings ): bool { return true; } public function disconnect_provider( string $provider_id ): bool { return true; } public function get_task_models(): array { return array(); } public function update_task_models( array $map ): bool { return true; } public function get_monthly_limit(): int { return 0; } public function set_monthly_limit( int $limit ): bool { return true; } public function set_task_context( ?string $task ): void { } public function is_tested( string $provider_id ): bool { return true; } public function mark_tested( string $provider_id, bool $tested ): bool { return true; } public function is_ready(): bool { return '' !== $this->api_key; } }