[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/php-ai-client/src/Providers/DTO/ -> ProviderMetadata.php (summary)

(no description)

File Size: 215 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

ProviderMetadata:: (11 methods):
  __construct()
  getId()
  getName()
  getDescription()
  getType()
  getCredentialsUrl()
  getAuthenticationMethod()
  getLogoPath()
  getJsonSchema()
  toArray()
  fromArray()


Class: ProviderMetadata  - X-Ref

Represents metadata about an AI provider.

This class contains information about an AI provider, including its
unique identifier, display name, and type (cloud, server, or client).

__construct(string $id, string $name, ProviderTypeEnum $type, ?string $credentialsUrl = null, ?RequestAuthenticationMethod $authenticationMethod = null, ?string $description = null, ?string $logoPath = null)   X-Ref
Constructor.

param: string $id The provider's unique identifier.
param: string $name The provider's display name.
param: ProviderTypeEnum $type The provider type.
param: string|null $credentialsUrl The URL where users can get credentials.
param: RequestAuthenticationMethod|null $authenticationMethod The authentication method.
param: string|null $description The provider's description.
param: string|null $logoPath The full path to the provider's logo image file.

getId()   X-Ref
Gets the provider's unique identifier.

return: string The provider ID.

getName()   X-Ref
Gets the provider's display name.

return: string The provider name.

getDescription()   X-Ref
Gets the provider's description.

return: string|null The provider description.

getType()   X-Ref
Gets the provider type.

return: ProviderTypeEnum The provider type.

getCredentialsUrl()   X-Ref
Gets the credentials URL.

return: string|null The credentials URL.

getAuthenticationMethod()   X-Ref
Gets the authentication method.

return: RequestAuthenticationMethod|null The authentication method.

getLogoPath()   X-Ref
Gets the full path to the provider's logo image file.

return: string|null The full path to the logo image file.

getJsonSchema()   X-Ref
{@inheritDoc}


toArray()   X-Ref
{@inheritDoc}

return: ProviderMetadataArrayShape

fromArray(array $array)   X-Ref
{@inheritDoc}




Generated : Sat Jun 13 09:38:55 2026 Cross-referenced by PHPXref